D
Don Nablo
I have a report which is opened via a docmd.openreport call. From this call
you can pass a view (acViewDesign, acViewNormal, or acViewPreview) type...
Is there a way to determine from inside the opened report, which view type
was requested?
As an example:
From External System
objAccess.DoCmd.OpenReport "someReport", prtPrev, , where
From Open event on the Report
I would like to say
if me.Viewmode = acViewPreview then
docmd.openreport "OtherReport",acViewPreview,, some filter
else
docmd.openreport "OtherReport",acViewNormal,, some filter
end if
you can pass a view (acViewDesign, acViewNormal, or acViewPreview) type...
Is there a way to determine from inside the opened report, which view type
was requested?
As an example:
From External System
objAccess.DoCmd.OpenReport "someReport", prtPrev, , where
From Open event on the Report
I would like to say
if me.Viewmode = acViewPreview then
docmd.openreport "OtherReport",acViewPreview,, some filter
else
docmd.openreport "OtherReport",acViewNormal,, some filter
end if