How do I remove a dash?

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

Guest

I need to take out one dash out of a group of letters and dashes. Examples
are things from A-2, B-3-5-2, or even 12-7-4. I need the first dash taken out
of my entire database. Is there any type of query or anything to take this
out?
 
You could use the following in a query:

Left([MyField], InStr([MyField], "-") - 1) & Mid([MyField], InStr([MyField],
"-") + 1)

If you wanted to make the change permanent, you could use that in an Update
query.
 

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