Update Query Remove -

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have data I'm importing and I want to take out a dash in the middle of it.
How do I create an update query to do this? It's phone numbers and I want to
take the dash out.
 
The update query will be
UPDATE TableName SET TableName.FieldName= Replace([FieldName],"-"," ")

It replace the dash with space, if you don't want the space then
UPDATE TableName SET TableName.FieldName= Replace([FieldName],"-","")
 

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

Similar Threads

how to change format of data already entered 5
Displaying zeros in cells 2
Removing dashes from a number 4
Formatting Phone Number 9
sql query reqest 1
Query Help 1
delete certain rows 1
removing unwanted dashes 1

Back
Top