G
Guest
I have a report that uses a Function to generate an entry in the Page Header,
a Group Footer that displays the group value in a message, and a Page Footer
that uses the Page function to display the number of pages in the report.
When I run the report directly from the Reports list, all the above features
work fine.
I am experimenting with running the same report from a script using the
DoCmd.OpenReport command. When I do, the report shows the proper data, but
none of the features above work. They all produce "#Error" on the preview as
well as hard-copy. The following is my DoCmd command:
DoCmd.OpenReport "Department Profile Summary", _
acViewPreview, , CriteriaData, _
acWindowNormal
Any assistance would be appreciated.
Thanks.
a Group Footer that displays the group value in a message, and a Page Footer
that uses the Page function to display the number of pages in the report.
When I run the report directly from the Reports list, all the above features
work fine.
I am experimenting with running the same report from a script using the
DoCmd.OpenReport command. When I do, the report shows the proper data, but
none of the features above work. They all produce "#Error" on the preview as
well as hard-copy. The following is my DoCmd command:
DoCmd.OpenReport "Department Profile Summary", _
acViewPreview, , CriteriaData, _
acWindowNormal
Any assistance would be appreciated.
Thanks.