D
Donuts
Hi,
I'm a beginner in Access VBA and I need help in writing a code for
combo filter boxes which are inserted into one form - ie. Combo boxe
are City and Country. The aim is to allow a user to filter either th
combo filter by a. EITHER or b. BOTH combo boxes. I've managed to ge
one of combo boxes to filter in VBA code , but does anyone know how
can get the other filter form to work too?
The code I have written for the City combo filter box is:
strfilter = CBOCity.Value
Set Citizens = Reports("Destination")
With Citizens
.Filter = "[City] = " & "'" & strfilter & "'"
.FilterOn = True Or False
Rgds
Donuts
I'm a beginner in Access VBA and I need help in writing a code for
combo filter boxes which are inserted into one form - ie. Combo boxe
are City and Country. The aim is to allow a user to filter either th
combo filter by a. EITHER or b. BOTH combo boxes. I've managed to ge
one of combo boxes to filter in VBA code , but does anyone know how
can get the other filter form to work too?
The code I have written for the City combo filter box is:
strfilter = CBOCity.Value
Set Citizens = Reports("Destination")
With Citizens
.Filter = "[City] = " & "'" & strfilter & "'"
.FilterOn = True Or False
Rgds
Donuts