Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Use a variable when referring to a report object

Status
Not open for further replies.

ideafixer

Programmer
Nov 21, 2002
70
US
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?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top