extracting numbers from a string

F

fiaola

Hello,

I'm trying to extract numbers from a string stored in an Acces table field.
What is the best method to do this or the correct function to use?

Thanks.
 
D

Dirk Goldgar

fiaola said:
Hello,

I'm trying to extract numbers from a string stored in an Acces table
field. What is the best method to do this or the correct function to use?

That will depend on how the numbers are stored in the string, and to what
extent the string format is consistent. What do your field values look
like?
 
F

fredg

Numbers are NOT consistent. 123ABC456DEF, ABC123DEF456, etc.

So in your first example your numbers are 123456.
How do you wish to display them?
As 123456 or as 123 456 etc., or how?
 
J

John W. Vinson

Numbers are NOT consistent. 123ABC456DEF, ABC123DEF456, etc.

What result would you desire from these strings? 123456? An array of numbers,
123, 456? Six digits, 1, 2, 3, 4, 5, 6?

John W. Vinson [MVP]
 
T

thomaszheng

fiaola said:
Hello,

I'm trying to extract numbers from a string stored in an Acces table
field. What is the best method to do this or the correct function to use?

Thanks.
 
T

thomaszheng

fiaola said:
Hello,

I'm trying to extract numbers from a string stored in an Acces table
field. What is the best method to do this or the correct function to use?

Thanks.
 

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

Top