Am I missing something simple?
Posted on 2011-02-18
Hi all, Not sure what is going on here, so any help would be appreciated.
I have a form in access 2003 with a list box control. For the Double Click event I have the following code;
Dim i as Integer
For i = Me.ListBoxName.ListCount - 1 To 0 Step - 1
If Me.ListBoxName.Selected(i) Then Me.ListBoxName.RemoveItem i
This works perfectly.
I have another form in the same database with a list box control with exactly the same code for the Double Click event, however it will remove multiple items at a time. There is no multi select for either list box.
Got me stumped??