M
Me
Hi,
I've got a report where the transaction lines shown should be limited by a
dialog window with dates from and to. However, the date used for this
limitation should be either the date of transaction or the date it was input
into the file. This choice is made via a checkbox on the controlling form.
I do have both these dates stored but I'm having trouble with this "choice"
of which date to use in the underlying query.
Without this choice, I know I can just stick my values in the criteria area
of the query such as "Between dlgDatesToUse.DateFrom and
dlgDatesToUse.DateTo". But that only works for one control. How can I run
this and make my choice? Can I use an IIf statement in criteria? So, if
the checkbox is equal to the date of transaction limitation, it uses the
date of transaction or else it runs with the date of entry? I've tried this
and it doesn't work.
How can this choice be made dynamically?
TIA,
ron
I've got a report where the transaction lines shown should be limited by a
dialog window with dates from and to. However, the date used for this
limitation should be either the date of transaction or the date it was input
into the file. This choice is made via a checkbox on the controlling form.
I do have both these dates stored but I'm having trouble with this "choice"
of which date to use in the underlying query.
Without this choice, I know I can just stick my values in the criteria area
of the query such as "Between dlgDatesToUse.DateFrom and
dlgDatesToUse.DateTo". But that only works for one control. How can I run
this and make my choice? Can I use an IIf statement in criteria? So, if
the checkbox is equal to the date of transaction limitation, it uses the
date of transaction or else it runs with the date of entry? I've tried this
and it doesn't work.
How can this choice be made dynamically?
TIA,
ron