List Box Unselecting though code

TJBernard

Registered User.
Local time
Today, 19:22
Joined
Mar 28, 2002
Messages
176
I have a form in which the users click records in a list box (these records are high lighted) and then click a command button on the form and the record is correctly added to another list box. Everything works great but I have run into a small problem.

I could not find a way through code to "unselect" or "unhighlight" the object in the first list box. If the user clicks the button on the form, to add the record from list box 1 to list box 2, the record on list box 1 disappears correctly (as that record has been added it should not be allowed to be added again). So by default the next record down in the list box high lights. So if the user is not careful to unselect that record by clicking on it, it will accidently be added to the 2nd list box.

Is there anyway through code to clear selections "highlighted records" in a list box?

If anyone has any ideas or comments they will be greatly appreciated.

Thank you very much for your time,

TJBernard
 

Users who are viewing this thread

Back
Top Bottom