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

Using a search form with the memo format 1

Status
Not open for further replies.

CalibAndrew

Technical User
Jul 5, 2002
5
CA

I'm trying to make a search form in which a word typed into a textbox populates a report with records that have that word in a memo format field (called "Description").

In order to do this, I tried linking the textbox to a macro which brought up a report based on a query of the Description field that had the criteria:

=[Forms]![frmSearch]![txtSearch]

Of course this didn't work (there were no records in the report). I think that the above criteria only brings up whole field matches, which rules out single word searches.

So I guess my questions are:
-Is there a version of that expression I can use to have the query hit on records that have a word in that memo field that the user types in?

And:

-Can you even use a search form with the memo format?
 
have you tried using the 'Like' operator?

I don't know forsure but you might try this:


Like "*" & [Forms]![frmSearch]![txtSearch] & "*"


hope this works....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top