formatting text field to show numbers only

  • Thread starter Russ via AccessMonster.com
  • Start date
R

Russ via AccessMonster.com

I am importing information in from another database that has a text field
with the following (815)555-1212, how can I remove everything via a query but
the numbers so it reads 8155551212?
 
K

Klatuu

Use an update query with a calculated field:

FixPhone: Replace(Replace(Replace([PhoneNu], "(", ""), ")", ""), "-","")
 
K

kingston via AccessMonster.com

It the input format is always the same:

NewNum = Mid([Input],2,3) & Mid([Input],6,3) & Right([Input],4)
 
R

Russ via AccessMonster.com

thanks for the help!
I am importing information in from another database that has a text field
with the following (815)555-1212, how can I remove everything via a query but
the numbers so it reads 8155551212?
 

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