G
Guest
I want to pass a variable with a report name instead of specific report name
but can't seem to get it to work.
This Works:
Set objRpt = .Reports![DB1_rpt3_control_totals]
How can I replace "DB!_rpt3_control_totals" with a variable, "strReportName"?
This Does not work:
Set objRpt = .Reports![& """ strReportName """ &]
What is the correct syntax?
Note: I am trying to evaluate the "Pages" of a report that is open and in
preview mode. The report is in an external database, not the current
database.
Thank You
Ross
but can't seem to get it to work.
This Works:
Set objRpt = .Reports![DB1_rpt3_control_totals]
How can I replace "DB!_rpt3_control_totals" with a variable, "strReportName"?
This Does not work:
Set objRpt = .Reports![& """ strReportName """ &]
What is the correct syntax?
Note: I am trying to evaluate the "Pages" of a report that is open and in
preview mode. The report is in an external database, not the current
database.
Thank You
Ross