Single Select List Box

rerichards

Registered User.
Local time
Today, 05:11
Joined
Apr 26, 2005
Messages
12
I have a combo box (cboSW) that when clicked poplulates a list box (lstPage) that has Multi Select = None (I do not want a multi select). When I open the form and select from the combo box, the list box is populated and none of the items in the list box are selected. That is the way I want it.

When I select from the list box, obviously an item is selected. However, after selecting an item from the list box, and then later clicking on the combo box to change the value in the combo box (and the list box gets refreshed), sometimes the list box has a row selected, and some times it does not.

How can I set it up so every time I perform a click event on the combo box that the items in the list box are ALL NOT SELECTED.

If I put the following code in the cboSW click event, and then click on the results in the list box, the focus returns to cboSW and does not stay on the list box.

For i = 1 To lstPage.ListCount
lstPage.Selected(i) = False
Next
 
Problem Solved. Thanks!

Thanks Izy. That solved my problem.
 

Users who are viewing this thread

Back
Top Bottom