Alter multi list selection

Abby N

Registered User.
Local time
Today, 13:57
Joined
Aug 22, 2000
Messages
123
Hello everyone. I have a form that uses a multiselect list box to set its filter. This much works fine. What I'd like to do now is code the list box to deselect all other items if one certain item is selected. Here is a sample list to help illustrate what I'm trying to do.

All
Green
Blue
Red
Yellow

Let’s say the user had previously selected 'Green' and 'Red'. I want those items to deselect if the user selects 'All'. Can anyone help me out?

~Abby

[This message has been edited by Abby N (edited 03-16-2001).]
 
Use the OnClick event to test what is currently selected, if it's the magic row, de-select all other selected rows.
 
Thank you for the prompt reply. However, that much I had already figured out. My question how do I tell it to deselect the other rows. I've tried a number of different things, but I can't seem to change the controls 'ItemsSelected' property.
Would you give me an example of how it's done?

~Abby

[This message has been edited by Abby N (edited 03-16-2001).]
 
Ok, I figured it out. It's the control's 'Selected' property that I need to set, not the 'ItemsSelected' property. Sorry if I wasted anyone’s time.

~Abby
 

Users who are viewing this thread

Back
Top Bottom