Good Morning all
Quick question; I have a simple form consisting of one list box (2 columns; UserName | UserID).
I then have a text box which as the user clicks on the UserName will be populated by the corresponding UserID.
I have this code on the list box
Private Sub LstUserName_Click()
Me.txtUserID = Me.LstUserName.Column(1)
End Sub
It is working perfectly by populating the text box with the User's ID number. However, I am looking for the list box to be multiselect - I do not know how to get all of the UserID numbers in the text box.
I am thinking maybe a For Each, or a SQL statement of some kind to build up a string... I am hoping someone can point me in the right direction of the best way to handle this??
Thanks
Quick question; I have a simple form consisting of one list box (2 columns; UserName | UserID).
I then have a text box which as the user clicks on the UserName will be populated by the corresponding UserID.
I have this code on the list box
Private Sub LstUserName_Click()
Me.txtUserID = Me.LstUserName.Column(1)
End Sub
It is working perfectly by populating the text box with the User's ID number. However, I am looking for the list box to be multiselect - I do not know how to get all of the UserID numbers in the text box.
I am thinking maybe a For Each, or a SQL statement of some kind to build up a string... I am hoping someone can point me in the right direction of the best way to handle this??
Thanks