G
Guest
Good afternoon,
I'm preparing a query that has a particular criterion in the DEPARTMENT
field. Rather than rewriting the query (and the 60 others that are based on
it) for the ability to leave DEPARTMENT unfiltered or filtered, I'd like to
tie the criterion to a combobox that may have a value in it on a form that
may be open. (does THIS make sense?)
First, I want the query field to check if the form is open. I recall in
prior versions that there was a way (not that I can recall how!) to use a
domain aggregate function to see if the objectname (in this case "frmdept")
was in a particular system object table. Anyway, if the form is open, I want
to then check to see if the value of my combobox (cmbdept) is either CNP or
RX. If the conditions a) form open and b) not null (either CNP or RX are
selected), I'd like the criterion to be "CNP" or "RX".
If this continues to make sense and interests someone enough to assist, I
will be very much appreciative. Thank you very much in advance!
I'm preparing a query that has a particular criterion in the DEPARTMENT
field. Rather than rewriting the query (and the 60 others that are based on
it) for the ability to leave DEPARTMENT unfiltered or filtered, I'd like to
tie the criterion to a combobox that may have a value in it on a form that
may be open. (does THIS make sense?)
First, I want the query field to check if the form is open. I recall in
prior versions that there was a way (not that I can recall how!) to use a
domain aggregate function to see if the objectname (in this case "frmdept")
was in a particular system object table. Anyway, if the form is open, I want
to then check to see if the value of my combobox (cmbdept) is either CNP or
RX. If the conditions a) form open and b) not null (either CNP or RX are
selected), I'd like the criterion to be "CNP" or "RX".
If this continues to make sense and interests someone enough to assist, I
will be very much appreciative. Thank you very much in advance!