Updating Field with -'s In

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

Guest

Hello, I have a field that comes to us with dashes in it in the format
0000-00000-0 and I would like to run an update query on the field to delete
the the dashes. Can someone explain the simplest way to do this.

Thanks so much,
IEJ
 
Use the Replace function (ACCESS 2000 patched and higher versions).

UPDATE TableName
SET FieldName = Replace([FieldName], "-", "", 1, -1, 1);
 
Hello, I have a field that comes to us with dashes in it in the format
0000-00000-0 and I would like to run an update query on the field to delete
the the dashes.


UPDATE thetable SET thefield = Replace(thefield, "-", "")
 

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

Back
Top