Can queries be developed in Access that allow wildcards in the pa.

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

Guest

Do you know how to develop a parameter query that allows the uer to enter a
wildcard in the parameter dialog value box?
 
Put your parameter in the criteria like this:
[Enter Parameter Here] & "*"
 
Do you know how to develop a parameter query that allows the uer to enter a
wildcard in the parameter dialog value box?

Use a criterion of

LIKE [Enter search term:]

If the user enters

*X*

they'll find all records where the field contains the letter X
anywhere in it.

It's the LIKE operator that controls whether wildcards work. LIKE
honors wildcards; the default = operator treats * as a literal
asterisk character.

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