Selecting the numeric portion of a text field

D

DougJrs

Good Afternoon Everyone!

I am having a little trouble figuring out how to select only the
numeric portion of a text field. I have a text field in Access that
stores both letters and numbers and all I want is the numeric part of
the field. Anyone have an Idea how I can do this:

Here are some examples:

11P
4A
3AB

I just want the first numerics from the field, so 11, 4, and 3.

Thanks,
Doug
 
J

Joop Kuijntjes

Good Afternoon Everyone!

I am having a little trouble figuring out how to select only the
numeric portion of a text field. I have a text field in Access that
stores both letters and numbers and all I want is the numeric part of
the field. Anyone have an Idea how I can do this:

Here are some examples:

11P
4A
3AB

I just want the first numerics from the field, so 11, 4, and 3.

Thanks,
Doug


If the numbers are always in front of the letters you can use
val(Yourfield)

Joop
 

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