hey
i am trying to Distinct and load 1 field to the listview and another one as regular but it is not working why?
what i am missing ?
this is my code
Code:Select DISTINCT PriceNametnx for any helpCode:Dim RsQ As New ADODB.Recordset RsQ.Open "Select DISTINCT PriceName,PriceCost From PriceList order by PriceName", CN Do While Not RsQ.EOF Set itm = FrmTipulimToGeneralSale.LTreat.ListItems.Add(, , RsQ!PriceName, 1) itm.SubItems(1) = FormatCurrency(RsQ!PriceCost) RsQ.MoveNext Loop RsQ.Close
salsa31




Reply With Quote