LarryDeLaruelle
Technical User
In ReportA, I have a test in the detail_format event that, when evaluated as true, will open ReportB. What I would like to do is then close ReportA.
I have tried 'DoCmd.Close acReport, "ReportA"' but receive run time error 2585 "This action can't be carried out while processing a form or report event"
Also tried to set the Cancel = True but that only stops the formatting of ReportA.
Tried the 'DoCmd.Close acReport, "ReportA"' in the Report_Open event of ReportB but that does not seem to execute; also put the close in the format event and received error 2585.
Is there a way to do this?
Thanks.
Larry De Laruelle
I have tried 'DoCmd.Close acReport, "ReportA"' but receive run time error 2585 "This action can't be carried out while processing a form or report event"
Also tried to set the Cancel = True but that only stops the formatting of ReportA.
Tried the 'DoCmd.Close acReport, "ReportA"' in the Report_Open event of ReportB but that does not seem to execute; also put the close in the format event and received error 2585.
Is there a way to do this?
Thanks.
Larry De Laruelle