This code loads the symbols from the ado recordset just fine.
Can anyone tell me how to allow only unique items to be loaded? In otherwords, even if there are several records with the same symbol, the user only needs to see it once.
adoSymbols.RecordSource = "SELECT (Symbol) FROM Holdings WHERE Investor_Number = " & frmStartPage.txtInvestorNumber
adoSymbols.Refresh
With adoSymbols.Recordset
Do Until .EOF
lstSymbols.AddItem .Fields(0)
.MoveNext
Loop
End With
Thanks,
Dwight
Can anyone tell me how to allow only unique items to be loaded? In otherwords, even if there are several records with the same symbol, the user only needs to see it once.
adoSymbols.RecordSource = "SELECT (Symbol) FROM Holdings WHERE Investor_Number = " & frmStartPage.txtInvestorNumber
adoSymbols.Refresh
With adoSymbols.Recordset
Do Until .EOF
lstSymbols.AddItem .Fields(0)
.MoveNext
Loop
End With
Thanks,
Dwight