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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing lables in data reports from code

Status
Not open for further replies.

RiverGuy

Programmer
Jul 18, 2002
5,011
US
Hi. I have some labels in my data report header that I would like to change the caption of in my code. Does anyone know how to access them? I can change the title fine, but not the labels.
 
Try This:

rpt.Sections("Section2").Controls("Label6").Caption = "Total"

Good Luck
 
Thanks! I found that out too. Someone here had done that before. Reminds me of doing VBA in Excel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top