I have a sub-report that is used in 3 different main reports.
ParentReport1 contains SubReport1
ParentReport2 contains SubReport1
ParentReport3 contains SubReport1
I want SubReport1 to know which of the main reports are currently open. How can I tell if a report is open via code?
Something like
If Reports("ParentReport1").IsOpen then...
If Reports("ParentReport2").IsOpen then...
If Reports("ParentReport3").IsOpen then...
I can't really use the ".Parent" method because in some cases there is another sub-report layer such as:
ParentReport1 contains SubReport1
ParentReport2 contains SubReportX contains SubReport1
ParentReport3 contains SubReportY contains SubReport1
ParentReport1 contains SubReport1
ParentReport2 contains SubReport1
ParentReport3 contains SubReport1
I want SubReport1 to know which of the main reports are currently open. How can I tell if a report is open via code?
Something like
If Reports("ParentReport1").IsOpen then...
If Reports("ParentReport2").IsOpen then...
If Reports("ParentReport3").IsOpen then...
I can't really use the ".Parent" method because in some cases there is another sub-report layer such as:
ParentReport1 contains SubReport1
ParentReport2 contains SubReportX contains SubReport1
ParentReport3 contains SubReportY contains SubReport1