I'm trying to set a reference to a report from a form module but getting Run-time error 424: Object Required
Is there a way to do this other than explicitly? Thank you for any help.
...
Dim rpt As Report
Dim YO As Variant
YO = "Reports!" & strReportName
Set rpt = YO
'HERE IS WHERE I WOULD SETREPORTPROPERTIES USING RPT
Is there a way to do this other than explicitly? Thank you for any help.
...
Dim rpt As Report
Dim YO As Variant
YO = "Reports!" & strReportName
Set rpt = YO
'HERE IS WHERE I WOULD SETREPORTPROPERTIES USING RPT