W
Whitney
Help! I'm trying to write an event procedure to close a form and the report
or subreports within a report.
I'm using the following:
DoCmd.Close or DoCmd.Close acform, "LocationSelector"
and
DoCmd.Close acReport, "CS Head Count Summary"
Closing the form works fine, but it won't close the report. I get a debug
error message for the report script.
The report contains 5 subreports. Does that make a difference? I'm able to
use this command for closing reports without subreports. Is there another
script that works better? I tried adding the script to the subreports, but
that just means you have to hit cancel 5 times.
or subreports within a report.
I'm using the following:
DoCmd.Close or DoCmd.Close acform, "LocationSelector"
and
DoCmd.Close acReport, "CS Head Count Summary"
Closing the form works fine, but it won't close the report. I get a debug
error message for the report script.
The report contains 5 subreports. Does that make a difference? I'm able to
use this command for closing reports without subreports. Is there another
script that works better? I tried adding the script to the subreports, but
that just means you have to hit cancel 5 times.