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

Remove Multiple characters from field

Status
Not open for further replies.

gkrenton

MIS
Jul 2, 2003
151
US
I've seen thread181-183305 & read it trying to understand how I can remove both a & and a ; from a field.
I'm trying to remove the html code in a web link that I'm creating in my query.
What I have thus far is

url: " & Replace([short_description],"&","") & "-p" & [inv_id] & "c0-path0.html"

Which removes the & from the ® part of the html within the short_description field. BUT I also need to remove the semi-colon (;) from it as well.

Reading the above thread probably tells me what I need to know but as a access hacker I have no idea how & where one creates these scripts so that I can use them in my query?

If there's a simplier way for me to remove both fields w/o creating some external code that would be even better (and easier)
Thanks in advance for whatever tips you can give me.

- gina
 
How about:

Replace(Replace([short_description],"&",""),";","")
 
Hot diggity! That's not only simple but works perfectly. Thanks - never would have thought about calling it 2x. Guess I was over-thinking it.

Thanks a ton!

gina
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top