How to use "like" in following case

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

Guest

Data in the field "class4" are
abc
bfg
mnt

I need to find out any data with "b" in any position.
I tried
WHERE ((([main].class4) Like '%b%'))
But it returned nothing in the query.
 
Data in the field "class4" are
abc
bfg
mnt

I need to find out any data with "b" in any position.
I tried
WHERE ((([main].class4) Like '%b%'))
But it returned nothing in the query.

If this is a JET (mdb or mde) Access database, the wildcard character
is * rather than %. Try

WHERE [Main].[Class4] LIKE "*b*"

John W. Vinson[MVP]
 

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