If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
determining if an entry is a number
Hi guys
I am creating an exchange program with quickbooks and tables it imports are text fields, even ones that represent numbers. so, I must create a validation rule that ensures only numbers are entered in those fields. There is a function in Javascript - NaN that can tell validate if user entered text and not a number. Does anybody have function like this? Thanks, David |
#2
|
|||
|
|||
determining if an entry is a number
VBA has a function called IsNumeric, which will return True or False
depending upon whether the argument given to it is numeric or not. ?IsNumeric("1234.56") True ?IsNumeric("ABS123") False -- Ken Snell MS ACCESS MVP "dp" wrote in message ... Hi guys I am creating an exchange program with quickbooks and tables it imports are text fields, even ones that represent numbers. so, I must create a validation rule that ensures only numbers are entered in those fields. There is a function in Javascript - NaN that can tell validate if user entered text and not a number. Does anybody have function like this? Thanks, David |
#3
|
|||
|
|||
determining if an entry is a number
But be aware that D and E are treated as numbers if they're in the midst of
the digits: ?IsNumeric("12E34") True ?IsNumeric("12D34") True -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Ken Snell" wrote in message ... VBA has a function called IsNumeric, which will return True or False depending upon whether the argument given to it is numeric or not. ?IsNumeric("1234.56") True ?IsNumeric("ABS123") False -- Ken Snell MS ACCESS MVP "dp" wrote in message ... Hi guys I am creating an exchange program with quickbooks and tables it imports are text fields, even ones that represent numbers. so, I must create a validation rule that ensures only numbers are entered in those fields. There is a function in Javascript - NaN that can tell validate if user entered text and not a number. Does anybody have function like this? Thanks, David |
#4
|
|||
|
|||
determining if an entry is a number
Excellent point.
The alternative if such things are not to be allowed, dp, would be to write a function that literally looks at each character and determines if that character is a number or not. -- Ken Snell MS ACCESS MVP "Douglas J. Steele" wrote in message ... But be aware that D and E are treated as numbers if they're in the midst of the digits: ?IsNumeric("12E34") True ?IsNumeric("12D34") True -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "Ken Snell" wrote in message ... VBA has a function called IsNumeric, which will return True or False depending upon whether the argument given to it is numeric or not. ?IsNumeric("1234.56") True ?IsNumeric("ABS123") False -- Ken Snell MS ACCESS MVP "dp" wrote in message ... Hi guys I am creating an exchange program with quickbooks and tables it imports are text fields, even ones that represent numbers. so, I must create a validation rule that ensures only numbers are entered in those fields. There is a function in Javascript - NaN that can tell validate if user entered text and not a number. Does anybody have function like this? Thanks, David |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Excel- Inserting a varying number of rows | Ken Wright | Worksheet Functions | 1 | March 20th, 2004 10:20 PM |
Excel 2002 "auto" number format | Norman Harker | Worksheet Functions | 0 | February 26th, 2004 04:40 AM |