scottk
01-22-2002, 07:58 AM
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?
Fizzio
01-22-2002, 08:13 AM
See if Me.NameOfListBox.Requery works in the On_Click event of the button.
scottk
01-22-2002, 08:29 AM
No. It does not do it. Thanks though for the quick responce. http://www.access-programmers.co.uk/ubb/smile.gif
Fizzio
01-22-2002, 08:37 AM
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).]