In my GUI, I have several ways to filter a database. Due to my lack of knowledge, my VBA programming has exploded with nested IF statements. I am getting better at using ACCESS now, and would like to find a more succinct way to perform multiple filters. My form is continuous.
Is there a simple way to do the following task (I made a toy model example):
I have a combo box SITE
where I can filter by work sites A, B, C
. After filtering by SITE, I have three check boxes where the user can then filter by item number 1-10
, 11-20
, 21-30
, depending on what the user selects.
Is there a way to append multiple filters (or filter filtered data)? For example, filter by SITE A
, then filter A
by item number 1-10
?
Currently, for EACH check box, I then have an IF statement for each site. Which I then use Form.Filter = . . . And . . .
and Form.FilterOn = True
.
Can I utilize SQL on the property sheet to filter as opposed to using the VBA?
[a]=10 AND [b]='nathan'
for example in the filters, not sure though. – Nathan_Sav