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

[RESOLVED] cant search with the same name letters in the listview

$
0
0
something strange happens when im trying to search the listview
if i have a word that is phone then i cant type those words in the listview p h o n e
dosnt let me search the correct word
i checked the length of the text its on 50 ,its enabled,and its not locked
this is my code:
Code:

Private Sub TxtFind_Change()
Set rs = CN.Execute("SELECT * from PriceList WHERE PriceName LIKE '%" & RplS(TxtFind.text) & "%' ORDER BY PriceName")
LsVw.ListItems.clear
While Not rs.EOF
  Set itm = FrmPriceList.LsVw.ListItems.Add(, , rs!PriceName, , "price")
  itm.Tag = rs!PriceID
  itm.SubItems(1) = FormatCurrency(rs!PriceCost)
  itm.SubItems(2) = rs!PriceRemarks
  rs.MoveNext
  TxtFind.SetFocus
  TxtFind.text = ""
 
  Wend
End Sub

this are the values
table name PriceList

PriceID Number
PriceName Text
PriceCost Currency
PriceRemarks Text

Viewing all articles
Browse latest Browse all 21243

Trending Articles



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