D
Denis
Hello,
The code below works in deselecting multiple items
selected in a list box (lstEducation).
I have 8 list boxes where users will be able to select
one or more items in each of the list boxes. These items
will be used to generate a query later (I have THAT part
figured out - thanks to the assistance of Allen Browne).
What I am looking for here is a way to modify the code
below (or add new code) to loop through all 8 list boxes
and deselect all selected items using a Reset button
(cmdReset).
Thank you and this forum is GREAT!!
Denis
Private Sub cmdReset_Click()
Dim lc As Long
Dim ls As Long
Me.lstEducation.SetFocus
lc = Me.lstEducation.ListCount
For ls = 0 To lc - 1
If Me.lstEducation.Selected(ls) = True Then
Me.lstEducation.Selected(ls) = False
End If
Next ls
End Sub
The code below works in deselecting multiple items
selected in a list box (lstEducation).
I have 8 list boxes where users will be able to select
one or more items in each of the list boxes. These items
will be used to generate a query later (I have THAT part
figured out - thanks to the assistance of Allen Browne).
What I am looking for here is a way to modify the code
below (or add new code) to loop through all 8 list boxes
and deselect all selected items using a Reset button
(cmdReset).
Thank you and this forum is GREAT!!
Denis
Private Sub cmdReset_Click()
Dim lc As Long
Dim ls As Long
Me.lstEducation.SetFocus
lc = Me.lstEducation.ListCount
For ls = 0 To lc - 1
If Me.lstEducation.Selected(ls) = True Then
Me.lstEducation.Selected(ls) = False
End If
Next ls
End Sub