G
Guest
I created a report which has in its open event a call to a form that
asks for date range. The form has date from and to. It also has OK &
Cancel buttons.
Once I hit OK (with valid dates) I change the report recordsource and
add the date range criteria. The report then displays fine.. 2
Questions...
1 ) If I hit cancel on the form, the report still opens.. I tried
adding code under the cancel command and say DoCmd.Close report... but
it did not allow me doing so
2) I want to show on the report the date range that was selected. But
when I refere to the form date from and to, it says it does not exist,
which is correct, since I close the form after I open the report.. Is
there a way I can capture the date from and to for display?
asks for date range. The form has date from and to. It also has OK &
Cancel buttons.
Once I hit OK (with valid dates) I change the report recordsource and
add the date range criteria. The report then displays fine.. 2
Questions...
1 ) If I hit cancel on the form, the report still opens.. I tried
adding code under the cancel command and say DoCmd.Close report... but
it did not allow me doing so
2) I want to show on the report the date range that was selected. But
when I refere to the form date from and to, it says it does not exist,
which is correct, since I close the form after I open the report.. Is
there a way I can capture the date from and to for display?