List Box - De-Select Item

Sharon Hague

Registered User.
Local time
Today, 21:20
Joined
Jul 10, 2003
Messages
138
Hi All

I have created a form from a table comprising of numerous list box's. Three of these list box's are set to "not required" in the table's properties.

However, I am having difficulty de-selecting the item once I have chosen one of these items from the list box in the form even though the properties in the table are set to not required.

Please advise.
 
Are you using the DoubleClick event of the list box? If not try
Code:
Private Sub YourListBox_DblClick(Cancel As Integer)
Me.YourListBox.Value = ""
End Sub

IMO
 
IMO

Your bloody good at this! - It's worked a treat

Cheers.
 
Glad it worked. If you need to use the DoubleClick event for something else, just create a small 'Deselect' button next to the ListBox and put the same code on the Click event of that button.

IMO
 
Last edited:

Users who are viewing this thread

Back
Top Bottom