Listbox Select/Unselect

  • Thread starter Thread starter DS
  • Start date Start date
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
 
Isn't what you want, the default behavior of a list box? Why do you think
you need any code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top