Hello everyone,
Is there any way to decipher between outputting a report and opening a report in VBA?
I have code within a report's On Close event that I only want run when the report is opened in Print Preview. I've tried using the following...
... but I get the same value returned whether I open the report in Print Preview mode or when outputting it.
Thanks in advance for any assistance
Is there any way to decipher between outputting a report and opening a report in VBA?
I have code within a report's On Close event that I only want run when the report is opened in Print Preview. I've tried using the following...
Code:
Reports(rptname).CurrentView
OR
Me.CurrentView
... but I get the same value returned whether I open the report in Print Preview mode or when outputting it.
Thanks in advance for any assistance