Multiple Replacements in a query

G

Guest

I am using this string: Itinerary: Replace(
,"-"," ")
To make my results look like this: "abc rtb ghe" rather than this
"abc-rtb-ghe"

I also have some slashes in the results eg. abc/def. Can I replace both the
"-" and the "/" with " " in the same query?

Thanks
 
G

Guest

Thanks, Doug for answering this question. Great web-site too. In case it
helps, tell your wife that your time on the access boards helps complete
strangers stay sane!
Regards, Dave
--


Douglas J. Steele said:
Replace(Replace(
,"-"," "), "/", " ")

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



AccessNewbie said:
I am using this string: Itinerary: Replace(
,"-"," ")
To make my results look like this: "abc rtb ghe" rather than this
"abc-rtb-ghe"

I also have some slashes in the results eg. abc/def. Can I replace both
the
"-" and the "/" with " " in the same query?

Thanks
 

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

Top