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!

How to include like wildcard in search

Status
Not open for further replies.

mrbboy

Technical User
Feb 28, 2007
136
US
I want to build a form that allows keyword searches using a textbox but don't know where to insert the "like" clause.

If Not IsNull(Me.txt_search) Then
Whereclause = "[Details] = '" & Me.txt_search & "'"
End If


Thanks
 
How are ya mrbboy . . .

Perhaps:
Code:
[blue]Whereclause = "[Details] Like '*" & Me.txt_search & "*'"[/blue]
[blue]Your Thoughts? . . .[/blue]

See Ya! . . . . . .

Be sure to see thread181-473997 [blue]Worthy Reading![/blue] [thumbsup2]
Also faq181-2886 [blue]Worthy Reading![/blue] [thumbsup2]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top