i have this code working fine on a form, i do the same exact thing now its not working and not giving any errors?!!!
Code: Select all
rivate Sub txtSearch_Change()
On Error GoTo Err_txtProperty_Change
Dim sql As String
sql = "Select Products.[Product Code], Products.[Product Name] from products" _
& " Where [Product Code] like '*" & Me.txtSearch .text& "*'"
Me.CustomerList.Form.RecordSource = sql
Me.CustomerList.Form.Requery
Me.lstCustomer.RowSource = sql
Me.lstCustomer.Requery
Err_txtProperty_Change:
End Sub