Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21246

search listview dosnt search

$
0
0
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
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


Viewing all articles
Browse latest Browse all 21246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>