extract only the numeric element of a text string.

  • Thread starter Thread starter Garry
  • Start date Start date
G

Garry

Hi, Is it possible to extract only the numeric element of a text string.

i.e. 123 Somewhere Avenue, thanks, Garry
 
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
 
Hi,



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

? val("123 kjlk")
123



Hoping it may help,
Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top