Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wild card search

Status
Not open for further replies.

4808

Programmer
Jan 13, 2004
27
GB
Hello,

Can anyone help me create a code to do a wild card search please.

Many thanks

Alph
 
Where? on form? In query? SQL?
In the criteria of the query.
Code:
Like "*" & [Forms]![FrmName]![FindText] & "*"
or
Code:
Like  [Forms]![FrmName]![FindText] & "*"

Did you try to have an Advanced Search?
also please read these FAQs those help you to get most out of your membership
JeremyNYC
MikeLacey
johnwm

Zameer Abdulla
Visit Me (New Look & style)
 
If you are wanting to do it in SQL then something like:
Code:
SELECT *
FROM yourtable
WHERE yourfield LIKE "*"

If not you could do a keyword search for 'wildcard' and that will turn up lots of results to help you.

Cheers

Harleyquinn

---------------------------------
For tsunami relief donations
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top