Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function to check value is character

Status
Not open for further replies.

Longia

Programmer
Dec 8, 2000
23
US
Can any body help me with this? I need a function that checks for character value in field.
 
You could use the asc function - that works one one character at a time.
 
Do you mean that you want to check if the field value is a string data type as opposed to a number data type?

If so you could use the IsNumeric function and if it returns false then your field data is a string. Thanks and Good Luck!

zemp
 
To be very precise I need a funtion that tells me that all the characters in the field (like "TOMKANE") are actually character not numeric.
 
Use the IsNumeric function logic on each character individually. Or use and asc function to return your individual character code and then you can add logic to compare the returned character code with the Ascii character set to determine if it is a string. Thanks and Good Luck!

zemp
 
Thanks a lot for help zemp and Tomkane
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top