D
doodle
greetings. happy friday the 13th.
access 97, windows xp
Right now this populates my listbox with everything that has a part
name that exactly matches what is in the text box. i need it to return
anything with a part name that contains what is in the text box. i know
i need to use LIKE but i can't get the syntax right.
Private Sub Command9_Click()
Dim strsql
strsql = "Select * from tblLookupParts"
strsql = strsql & " WHERE PartName='" & Me.txtSearch & "'"
Me.lstTSUSA_Search.RowSource = strsql
End Sub
-doodle
access 97, windows xp
Right now this populates my listbox with everything that has a part
name that exactly matches what is in the text box. i need it to return
anything with a part name that contains what is in the text box. i know
i need to use LIKE but i can't get the syntax right.
Private Sub Command9_Click()
Dim strsql
strsql = "Select * from tblLookupParts"
strsql = strsql & " WHERE PartName='" & Me.txtSearch & "'"
Me.lstTSUSA_Search.RowSource = strsql
End Sub
-doodle