Hi,
Got a small problem (I hope)
Can Anyone tell me how to remove or hide double items from a listbox?
This is what I already have:
Greetings J. Radjesh Klauke (Netherlands)
Got a small problem (I hope)
Can Anyone tell me how to remove or hide double items from a listbox?
This is what I already have:
Code:
Private Sub Combo1_Click()
List1.Clear
Set rs = New Recordset
rs.Open "SELECT DISTINCT * FROM POSTCODE WHERE GEMEENTE = '" & Combo1.Text & "'", cn, adOpenDynamic
Do Until rs.EOF
List1.AddItem rs!Plaats '<----
rs.MoveNext
Loop
rs.Close
Set rs = Nothing
End Sub
Greetings J. Radjesh Klauke (Netherlands)