SQL LIKE wild card

G

Guest

Does Access query (SQL) suppoer the wild card $ with LIKE to select records?
I get no erros but the query returns no results,
Example: SELECT * FROM table WHERE name LIKE '%smith'
 
R

Rick Brandt

gene said:
Does Access query (SQL) suppoer the wild card $ with LIKE to select records?
I get no erros but the query returns no results,
Example: SELECT * FROM table WHERE name LIKE '%smith'

Try the * instead of %. It's also ? instead of _.
 
G

GRayL

Yes. See Help under "Like Operator". You have to use
double quotes and a "?" for the single character wildcard
inside the double quotes.
 

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