# in select queries

H

Hal Pratt

I want to find address records with # in the street field (i.e., 123 Easy St
#123). The problem is # is a wild character for numeric values. How can I
write an expression to find records with # characters in them?
 
J

John Vinson

I want to find address records with # in the street field (i.e., 123 Easy St
#123). The problem is # is a wild character for numeric values. How can I
write an expression to find records with # characters in them?

Putting special characters in square brackets "insulates" them and
causes them to be interpreted literally rather than as a wildcard:

LIKE "*[#]*"

should work.
 

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