Deselect an entry in a list box

dubmunkey

Registered User.
Local time
Today, 14:05
Joined
Jan 6, 2006
Messages
62
hi all,

ive ste up a form with list boxes being used as filters but once ive made a selection i can deselect it to clear the filter. any ideas where the stetings are to control this?

greg
 
For single select List Box:

Code:
Me.[COLOR="Blue"]lstYourListName[/COLOR] = ""


For Multi-Select Box

Code:
Dim i As Long
For i = 0 To Me.[COLOR="Blue"]lstYourListName[/COLOR].ListCount - 1
    Me.[COLOR="Blue"]lstYourListName[/COLOR].Selected(i) = False
Next i

Change lstYourListName to suit
 
cheers

greg
 

Users who are viewing this thread

Back
Top Bottom