في نفس الرابط اعلاه عليوتيوب بها هذا الكود Private Sub txtProperty_Change()
On Error GoTo Err_txtProperty_Change
Dim strSource As String
strSource = "SELECT OrderNumber, Address, City, ZipCode, OrderRowID " & _ "FROM tblOrders " & _ "Where address Like '*" & Me.txtProperty.Text & "*' " _ & "Or City Like '*" & Me.txtProperty.Text & "*' " _ & "Or ZipCode Like '*" & Me.txtProperty.Text & "*' " _ & "Or OrderNumber Like '*" & Me.txtProperty.Text & "*' " Me.lstSearchResults.RowSource = strSourceExit_txtProperty_Change: Exit SubErr_txtProperty_Change:
MsgBox Err.Number & " " & Err.Description Resume Exit_txtProperty_ChangeEnd Sub