I have a dynamic report (created from VBA coding) and I want to set the OnClose event procedure to make another form visible when the report closes. I cannot access the events in the report itself since it doesn't exist until the user presses a button.
I have tried several variations with negative results:
(Where rpt.Name is the name of the newly created report)
AND
OR
ETC.
My primary question is this: Is what I'm trying to do possible? If so, how? If not, is there another way to go about accomplishing the same thing?
Thanks for your help!
I have tried several variations with negative results:
Code:
Set Reports(rpt.Name).OnClose = "Forms!FRMDynamicReport.Visible = True"
AND
Code:
Reports(rpt.Name).OnClose = "Forms!FRMDynamicReport.Visible = True"
Code:
Reports(rpt.Name).OnClose = Forms!FRMDynamicReport.Visible = True
My primary question is this: Is what I'm trying to do possible? If so, how? If not, is there another way to go about accomplishing the same thing?
Thanks for your help!
Comment