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

Search for double-quote in field 2

Status
Not open for further replies.

hovercraft

Technical User
Jun 19, 2006
236
US
Greetings,
I'm trying to use the query builder to return a recordset of all records that may contain the quotation mark in the value.
I've tried instr(1,fieldname,chr34) but that hasn't worked.

Any suggestions?

Thanks,
Hovercraft.
 
How about
Code:
Like "*""*"
i.e. simply use two double quotes.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
A simpler way:
Code:
Like '*"*'

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
If you did need to search for the " using instr, how would you go about that?

I doing some data "massaging" in VBA and have a need to find the position of the first set of quotes in a field
 
Simply search for Chr(34)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top