Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing dashes from a field

Status
Not open for further replies.

aripie

Technical User
Oct 6, 2004
2
US
I am a newbie at using Access and I need to do some suppressions, but my problem is the master file I am suppressing against the phone field is 333-333-3333 while the other table files are 3333333333.

I am attempting to remove the dashes from the master file with no luck.

Any suggestions? Either through the design view or a straight SQL string?

Any help is appreciated and thanks! :D
 
use the access Replace function

or, if the dashes are always in the same position, use the Mid (substring) function

rudy
SQL Consulting
 
Thank you!

In the process I also found another good one that worked miracles:

UPDATE [Table A] SET [phone] = replace([phone],'-','')

Worked like a charm :D

Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top