AccessDevJunior
Programmer
hya,
I have a problem with a multiselect listbox. I would like all the selected rows of the list box to appear within an unbound textbox but only one result shows at a time. I have th following code on the after update of the list box. If anyone knows and could tell me how to get around this it would be a great help?
Dim ctrl As ListBox
Dim varItems As Variant
Set ctrl = Me!ListUsers
For Each varItems In ctrl.ItemsSelected
Me.Text1 = ctrl.ItemData(varItems) & ", "
Next varItems
I have a problem with a multiselect listbox. I would like all the selected rows of the list box to appear within an unbound textbox but only one result shows at a time. I have th following code on the after update of the list box. If anyone knows and could tell me how to get around this it would be a great help?
Dim ctrl As ListBox
Dim varItems As Variant
Set ctrl = Me!ListUsers
For Each varItems In ctrl.ItemsSelected
Me.Text1 = ctrl.ItemData(varItems) & ", "
Next varItems