clearing selections from multi-select list box

scottk

Registered User.
Local time
Today, 21:36
Joined
Aug 20, 2001
Messages
29
I have a multiselect list box and I would like to place a button below it that will clear the highlighted rows when pressed. However I am having difficulty figuring out the code to place behind it. Can anyone help me with this?
 
See if Me.NameOfListBox.Requery works in the On_Click event of the button.
 
No. It does not do it. Thanks though for the quick responce.
smile.gif
 
OK, see if this works on the On_Click event

Dim intX As Integer
For intX = 0 To ListBoxName.ListCount
Me.ListBoxName.Selected(intX) = False
Next intX
Me.Refresh 'not sure if this is needed though

HTH


[This message has been edited by Fizzio (edited 01-22-2002).]
 

Users who are viewing this thread

Back
Top Bottom