Search for %

  • Thread starter Thread starter JLong
  • Start date Start date
J

JLong

I need to search a SQL database for a % character. I have
tried many variations of " and ' but can't make it work.
How can I search for the percent % caracter in a text
field?
 
Try putting square brackets around the character: LIKE '%[%]%'
 
I need to search a SQL database for a % character. I have
tried many variations of " and ' but can't make it work.
How can I search for the percent % caracter in a text
field?

If it's from an Access frontend, you should be able to use square
brackets as a quote character:

LIKE "%[%]%"

John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 

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