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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update Query for Replacing Values

Status
Not open for further replies.

leadpro

Technical User
Jan 7, 2005
34
US
I need a better understanding of Replace in an update query. I have several characters I need to find and remove from phone numbers, such as:
(
)
-

In a nutshell, I need a string of 10 digits.
 
[Field name]=Replace(Replace(Replace([Field name],'(',''),'-',''),')','')

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Wouldn't regex be better
Sure, at the expense of an UserDefinedFunction.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top