: Private Sub txtSearchBox_Change()
: If txtPartN = "" Or txtSearchBox = "" Then
: Adodc1.Recordset.Filter = ""
: Adodc1.Refresh
: Exit Sub
: End If
: Adodc1.Recordset.Filter = txtPartN.Text & " Like '*" & txtSearchBox.Text & "*'"
: End Sub
: 'What's wrong with this code? Pls help me..
:
try using % instead of * as the wildcard :
Adodc1.Recordset.Filter = txtPartN.Text & " Like '%" & txtSearchBox.Text & "%'"