M
Melissa
I have a form that contains 2 drop down boxes and a query
that references these drop down boxes in order to set the
criteria. I.e. using =Forms!frmInputs!Company
Sometimes I need the query to filter on both fields, which
works fine. The problem I am having is that sometime I
only need the query to filter on the first drop down box
and not the second. Using the universal code * in the 2nd
box does not work because if you put this value into the
drop down box it looks for records with "*" and returns
nothing.
I think that I could use SQL code to get this working, but
I am unfamilar with it. Can I use "if - then" statements
in SQL query code?
Any help on this issue would greatly be appreciated!
Thank you so much,
Melissa
that references these drop down boxes in order to set the
criteria. I.e. using =Forms!frmInputs!Company
Sometimes I need the query to filter on both fields, which
works fine. The problem I am having is that sometime I
only need the query to filter on the first drop down box
and not the second. Using the universal code * in the 2nd
box does not work because if you put this value into the
drop down box it looks for records with "*" and returns
nothing.
I think that I could use SQL code to get this working, but
I am unfamilar with it. Can I use "if - then" statements
in SQL query code?
Any help on this issue would greatly be appreciated!
Thank you so much,
Melissa