View Full Version : unselect/clear multi-select list box


Angello Pimental
06-28-2001, 10:08 AM
OK, this is driving me batty...

How do I clear a list box of its highlighted records?
I have tried refresh, and numerous bits of code from Access help, but the list box still doesn't want to clear.

Any advice, suggestions would be great, thnx

Angelo

Angello Pimental
06-28-2001, 10:31 AM
Figured out with some help from pbricker at ElementK.

Code:

Dim intX as Integer
For intX = 0 To ListBoxName.ListCount - 1
ListBoxName.Selected(intX) = False
Next

Stick it where ever you please