I want to change the value of a label on a report in VBA. I have the report name stored in a variable. The only way I am familiar with modifying labels using VBA is by:
Reports!Rpt_TestReport!ReportHeading.Caption = "Change The Report Heading Caption"
I need Rpt_TestReport stored as a string. How would I modify the caption of a label on a report name stored as a string?
Reports!Rpt_TestReport!ReportHeading.Caption = "Change The Report Heading Caption"
I need Rpt_TestReport stored as a string. How would I modify the caption of a label on a report name stored as a string?