Using Like %

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm new to Access 2003 is there something that changed from 2000? I have
this data
AB
ABC
DD
DER
And want to pull the records back that contain B, so I would use LIKE '%B%'.
Correct? Only this does not work. Any ideas?
Thanks much!
 
This depends on if you are accessing MDB data or SQL data

your example is for SQL for access you need * instead of %
 
DHWI said:
I'm new to Access 2003 is there something that changed from 2000? I
have this data
AB
ABC
DD
DER
And want to pull the records back that contain B, so I would use LIKE
'%B%'. Correct? Only this does not work. Any ideas?
Thanks much!

Jet tables or a server back end? DAO or ADO or a query?

With Jet/DAO/query the wild card is *

With ADO/most server back ends the wild card is %
 

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