Number Keypad Values Not accepted as Numieric 
Author Message
 Number Keypad Values Not accepted as Numieric

I' ve add code in the key down event procedure,    the goal of this code is
to convert  "mm" in million,

That is 1mm would become 1,000,000.  This is very common in Financial
Databases.

This works very well when I use the normal numbers in the keypad suh as the
number " 1", above and to the right of the letter "Q"

However When I use the Numbers in the Number Keypad (Right Side of The
Keyboard),  It those not recognize the key strokes as numbers..

I Have already checked and the Number Lock was on..

Thanks for any help on this matter
Henry



Mon, 30 Jul 2001 03:00:00 GMT  
 Number Keypad Values Not accepted as Numieric
I' ve add code in the key down event procedure,    the goal of this code is
to convert  "mm" in million,

That is 1mm would become 1,000,000.  This is very common in Financial
Databases.

This works very well when I use the normal numbers in the keypad suh as the
number " 1", above and to the right of the letter "Q"

However When I use the Numbers in the Number Keypad (Right Side of The
Keyboard),  It those not recognize the key strokes as numbers..

I Have already checked and the Number Lock was on..

Thanks for any help on this matter
Henry



Mon, 30 Jul 2001 03:00:00 GMT  
 Number Keypad Values Not accepted as Numieric
Which event are you using?

In the KeyDown or KeyUp event, the KeyCode distinguishes these.
In the KeyPress event, the KeyAscii does not.

Quote:

> I' ve add code in the key down event procedure,    the goal of this code is
> to convert  "mm" in million,

> That is 1mm would become 1,000,000.  This is very common in Financial
> Databases.

> This works very well when I use the normal numbers in the keypad suh as the
> number " 1", above and to the right of the letter "Q"

> However When I use the Numbers in the Number Keypad (Right Side of The
> Keyboard),  It those not recognize the key strokes as numbers..

> I Have already checked and the Number Lock was on..

> Thanks for any help on this matter
> Henry



Tue, 31 Jul 2001 03:00:00 GMT  
 Number Keypad Values Not accepted as Numieric
I used the keydown event


Tue, 31 Jul 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Parameters do not accept Null Values

2. Date field - not accepting empty values - Why???

3. Using numbers from the numeric keypad?

4. How to test in vba for floating point not a number values

5. Datagrid does not accept keypad '-' or '+'.

6. Force Textbox to accept only whole numbers

7. Only Accept Numbers in Text Box

8. callbyname accepting varying number of arguments

9. text box that only accepts numbers

10. text box that only accepts numbers

11. How do I get a Textbox to only accept numbers

12. check input field, only numbers accepted

 

 
Powered by phpBB® Forum Software