Hi, I am using two multi select listboxes that transfer data from one listbox to another. My code is the following.
dim (i) as integer
Dim i As Integer
For i = 0 To List1.ListCount
If List1.Selected(i) = True Then
Me.List2.AddItem Me.List1.Column(0, i)
me.list1.removeitem (i)
End If
Next i
* Problem is the me.list1.removeitem(i) code, it only transfers one name from the listbox and removes only one item. it does not remove the multi-selection. Any help greatly appreciated.
dim (i) as integer
Dim i As Integer
For i = 0 To List1.ListCount
If List1.Selected(i) = True Then
Me.List2.AddItem Me.List1.Column(0, i)
me.list1.removeitem (i)
End If
Next i
* Problem is the me.list1.removeitem(i) code, it only transfers one name from the listbox and removes only one item. it does not remove the multi-selection. Any help greatly appreciated.