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!

text search options 1

Status
Not open for further replies.

GelC

Technical User
Oct 3, 2006
93
US
Hi all,
I'm trying to build a search function base on text fields with options of all words, any word, or exact match.
I searched in this forum but I have no luck yet.
Could someone please give me some help please?

GelC
 
The way it usually works is you post some code and someone here helps you straighten it out, if it catches the eye.
 
Something like this snippet:

If Me.frameSearch.Value = 1 Then 'Last Name
If Me.FrameLikeExact.Value = 2 Then 'Like match
strWhere = " WHERE [Subscriber Master]![LastName] Like '*' & '" & varSearchStr & "' & '*'"
Else 'Exact match
strWhere = " WHERE [Subscriber Master]![LastName] = '" & varSearchStr & "'"
End If
 
evalesthy,
Thanks for your starting point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top