Hi All,
I have a multi-select listbox, that can have duplicate items (i.e
samples numbers that are analyzed in duplicate - the sample IDs are not
the same, but these IDs are hidden from the user).
I want to loop through the items on the listbox, but only use unique
sample numbers. Here is what I have:
************************************************** ***********************
Dim varItem As Variant
Dim frm As Form, ctl As Control
Dim strSampleList As String
Set frm = Forms!frmUpdateSamples
Set ctl = frm!lboSamples
For Each varItem In ctl.ItemsSelected
If ** ??? not duplicate ??? ** Then
strSampleList = strSampleList & ctl.Column(1, varItem) & vbCrLf
End If
Next varItem
************************************************** ***********************
Any help would be great. Thanks!
Peter