Apr 27, 2009 #1 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
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
Apr 27, 2009 #2 TheAceMan1 Programmer Sep 23, 2003 11,174 US 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] Also faq181-2886 [blue]Worthy Reading![/blue] Upvote 0 Downvote
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] Also faq181-2886 [blue]Worthy Reading![/blue]