Question Listbox deselect (1 Viewer)

Super Suarez

Registered User.
Local time
Yesterday, 21:14
Joined
Jul 10, 2013
Messages
36
Hi All,

I have a listbox in access 2007 and I'm wanting to deselect an item if it is clicked again.

ie If I have a list, click once to select an item, then if you select the same item, click it, it then deselects it. How do I get that working?

I've tried:-
List383.Value = -1

and
List383.RowSource = vbNullString

and
List383.Selected(temp) = False

Nothing seems to work.

hope someone can help
 
You could try monitoring the ListIndex property and if the same index is selected more than once, use
Code:
Me.List383 = Nothing 
Me.otherControl.SetFocus
this will work to deselect the list box
The problem now is trying to track the selections

David
 

Users who are viewing this thread

Back
Top Bottom