hey
im trying to search a listview in a textbox but its not searching for some reason.
the listview pulls the data from another form
ive done this a houndred times already i know im missing something and it drives me crazy.
i dont know whats wrong:confused:
here is the code
im trying to search a listview in a textbox but its not searching for some reason.
the listview pulls the data from another form
ive done this a houndred times already i know im missing something and it drives me crazy.
i dont know whats wrong:confused:
here is the code
Code:
Private Sub Text1_Change()
On Error Resume Next
If LsVw.SelectedItem Is Nothing Then Exit Sub
Set RS = CN.Execute("SELECT * FROM Customers")
While Not RS.EOF
Set Itm = FrmNewSale.LsVw.ListItems.Add(, , RS!ID, , "cust")
Itm.Tag = RS!ID
Itm.SubItems(1) = RS!FullName
DoEvents
RS.MoveNext
Wend
End Sub