M
MarMo
Hi ,
I'm trying to filter a listbox on a form with 2 or 3 textboxes as the
user types
Filtering with 1 textbox on the OnChange event works fine.
this is the code i'm using
'***********************************************************************
Sub FilterListSerial()
txtSearchString = Forms!FrmOrderSearch.TxtSearchSerial.Text
strSQL = "SELECT DISTINCT * FROM QryOrdersSearch "
strSQL = strSQL & "WHERE [Workorder] Like '" & txtSearchString
& "*' "
strSQL = strSQL & "ORDER BY PickupDate DESC"
Forms!FrmOrderSearch!LstSearchOrders.RowSource = strSQL
Forms!FrmOrderSearch!LstSearchOrders.Requery
'***********************************************************************
How can i filter the listbox when a user types values in 2 or more
textboxes.
Thanks for helping me.
MarMo
I'm trying to filter a listbox on a form with 2 or 3 textboxes as the
user types
Filtering with 1 textbox on the OnChange event works fine.
this is the code i'm using
'***********************************************************************
Sub FilterListSerial()
txtSearchString = Forms!FrmOrderSearch.TxtSearchSerial.Text
strSQL = "SELECT DISTINCT * FROM QryOrdersSearch "
strSQL = strSQL & "WHERE [Workorder] Like '" & txtSearchString
& "*' "
strSQL = strSQL & "ORDER BY PickupDate DESC"
Forms!FrmOrderSearch!LstSearchOrders.RowSource = strSQL
Forms!FrmOrderSearch!LstSearchOrders.Requery
'***********************************************************************
How can i filter the listbox when a user types values in 2 or more
textboxes.
Thanks for helping me.
MarMo