D
djc
For Each itm In Me.lstChosen.ItemsSelected
Me.lstChosen.RemoveItem (itm)
Next itm
the above code does not work. I want to remove all selected items from a
list box. It's source is a Value List. The above makes perfect sense to me
but I discovered that once the RemoveItem method is called ALL items are no
longer selected so the other items that were selected and supposed to be
removed at the time the call is made to the RemoveItems method are not
removed.
that sucks.
I can think of a least one round about way of getting around this but I want
to see if anyone else has something (hopefully better than mine.)
anyone?
Me.lstChosen.RemoveItem (itm)
Next itm
the above code does not work. I want to remove all selected items from a
list box. It's source is a Value List. The above makes perfect sense to me
but I discovered that once the RemoveItem method is called ALL items are no
longer selected so the other items that were selected and supposed to be
removed at the time the call is made to the RemoveItems method are not
removed.
that sucks.
I can think of a least one round about way of getting around this but I want
to see if anyone else has something (hopefully better than mine.)
anyone?