Listbox Select/Unselect

D

DS

I'm trying to use this codeon my listbox.
If the row is unselected, then when I click on it I want it to be
selected, if it's selected, then when I click on it I want to unselect
it. This doesn't seem to be working!
Thanks
DS

I have this on the OnClick Event.

If Me.List52.Selected = False Then
Me.List52.Selected = True
ElseIf Me.List52.Selected = True Then
Me.List52.Selected = False
End If
 
D

Duane Hookom

Isn't what you want, the default behavior of a list box? Why do you think
you need any code?
 
Top