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

Use * as query criteria, not as a wildcard character

Status
Not open for further replies.

kpal29

Technical User
Feb 8, 2003
147
DK
I have a set of data where certain fields contain an *. I want to find and remove these asterisks.

I have the same problem with the # sign. Since these characters already have a meaning in Access, they are not being treated as simple strings.

How do I force Access to treat them as text?

Thanks
 
well, if you just want to replace them, then use a replace statement in an update sql

update table
set fieldname = replace(fieldname, "char", "repChar")

do backup before doing this...

--------------------
Procrastinate Now!
 
Special characters can normally be treated as literals by using square brackets. For example

yourfield Like "*[*]*"
or
yourfield Like "*[#]*
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top