Hello,
I cannot find an error in my code:
If ctl.ItemsSelected.Count > 0 Then
For Each varItm In ctl.ItemsSelected
If lstn = "" Then
lstn = Me.lstAcct.Column(2) & ";"
Else
lstn = lstn & ctl.Column(2) & ";"
End If
Next varItm
End If
I should get a list of selected items as a string separated by ";", but I am getting the same value over and over based on the number of items selected in the listbox.
Thank you for your assistance.
I cannot find an error in my code:
If ctl.ItemsSelected.Count > 0 Then
For Each varItm In ctl.ItemsSelected
If lstn = "" Then
lstn = Me.lstAcct.Column(2) & ";"
Else
lstn = lstn & ctl.Column(2) & ";"
End If
Next varItm
End If
I should get a list of selected items as a string separated by ";", but I am getting the same value over and over based on the number of items selected in the listbox.
Thank you for your assistance.