Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Queries / May 2006

Tip: Looking for answers? Try searching our database.

I am looking for a function that would test a field value for numeric or text

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 26 May 2006 14:39 GMT
Is there a function that would test a value to see if it is numeric or text?

These values are in a text field.

Examples:

123456 = Numeric

DMSmith = Text

or somehing like this

Thanks

dave
John Spencer - 26 May 2006 16:36 GMT
IsNumeric([SomeField]) will return True if the entire contents of the field
can be treated as a number.

There is a little bit of a glitch in this.  If the entry could be treated as
a scientific notation number then that will recieve True.

IsNumeric should return true for
Strings with only numbers
Strings with a plus or a minus sign at the beginning or end of a string of
numbers
Strings with one "e" or one "d" inside a string of numbers (scientific
notation)
All the above with leading or trailing spaces
Also any number of spaces between the plus or minus sign and a string of
numbers

> Is there a function that would test a value to see if it is numeric or
> text?
[quoted text clipped - 12 lines]
>
> dave
Dave - 26 May 2006 18:38 GMT
Thanks it gives me a place to start

Dave

> IsNumeric([SomeField]) will return True if the entire contents of the
> field can be treated as a number.
[quoted text clipped - 28 lines]
>>
>> dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.