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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding wildcards to a query from a form

Status
Not open for further replies.

Danialle

Technical User
May 14, 2002
14
US
I am trying to allow users to search a memo field using a keyword, so I need to be able to add the LIKE "*comments*" to the query criteria, but comments is from a form. This is the code I came up with, but it does not work

criteria: Like "*[Forms]![FormQuery].[comments]*"

where FormQuery is the Form and comments is the memo field.

Can you help? Thanks
 
Hi!

Try this:

Like "*" & [Forms]![FormQuery].[comments] & "*"

hth
Jeff Bridgham
bridgham@purdue.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top