D dubmunkey Registered User. Local time Today, 08:56 Joined Jan 6, 2006 Messages 62 Jan 25, 2006 #1 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
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
ansentry Access amateur Local time Today, 19:56 Joined Jun 1, 2003 Messages 995 Jan 25, 2006 #2 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
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
D dubmunkey Registered User. Local time Today, 08:56 Joined Jan 6, 2006 Messages 62 Jan 26, 2006 #3 cheers greg
D dubmunkey Registered User. Local time Today, 08:56 Joined Jan 6, 2006 Messages 62 Jan 26, 2006 #4 cheers greg