By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,165 Members | 894 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,165 IT Pros & Developers. It's quick & easy.

Using wildcards in query input

P: n/a
In a query I have put the following criteria in a field:
[enter last name]
Now I would like the query to use this user input to search with wildcards.
So, if he enters john, in fact the query should search like:
*john*
Is that possible?
Thanks,
john
Jul 25 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Use the Like operator and the * wildcard in the criteria:

Like "*" & [enter last name] & "*"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"john" <jo**@test.comwrote in message
news:0I********************@casema.nl...
In a query I have put the following criteria in a field:
[enter last name]
Now I would like the query to use this user input to search with
wildcards. So, if he enters john, in fact the query should search like:
*john*
Is that possible?
Thanks,
john

Jul 25 '06 #2

P: n/a
Thanks.
john

"Allen Browne" <Al*********@SeeSig.Invalidschreef in bericht
news:44***********************@per-qv1-newsreader-01.iinet.net.au...
Use the Like operator and the * wildcard in the criteria:

Like "*" & [enter last name] & "*"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"john" <jo**@test.comwrote in message
news:0I********************@casema.nl...
>In a query I have put the following criteria in a field:
[enter last name]
Now I would like the query to use this user input to search with
wildcards. So, if he enters john, in fact the query should search like:
*john*
Is that possible?
Thanks,
john


Jul 25 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.