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 / March 2006

Tip: Looking for answers? Try searching our database.

extract only the numeric element of a text string.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Garry - 28 Mar 2006 14:30 GMT
Hi, Is it possible to extract only the numeric element of a text string.

i.e. 123 Somewhere Avenue, thanks, Garry
Jerry Whittle - 28 Mar 2006 15:14 GMT
If the numbers are always in the beginning of the string as in your example,
use the Val function.

Val("123 Somewhere Avenue")  returns 123
Signature

Jerry Whittle
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

> Hi, Is it possible to extract only the numeric element of a text string.
>
> i.e. 123 Somewhere Avenue, thanks, Garry
Michel Walsh - 28 Mar 2006 15:14 GMT
Hi,

If the number is at the start, then val( ) would do:

? val("123 kjlk")
123

Hoping it may help,
Vanderghast, Access MVP

> Hi, Is it possible to extract only the numeric element of a text string.
>
> i.e. 123 Somewhere Avenue, thanks, Garry
 
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.