Dynamically change DataReport labels at run-time
In order for you to dynamically change VB DataReport labels, you have to use the Sections/Controls properties of the DataReport.
Code ex.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rpt01.Sections("sctRptHdr").Controls("lblBeginDate").Caption = "11/01/1998"
rpt01.Sections("sctRptHdr").Controls("lblEndDate").Caption = "11/30/1998"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above code will change the label caption of the "lblBeginDate" label in the "sctRptHdr" section of the report to "11/01/1998" and change the label caption of the "lblEndDate" label in the "sctRptHdr" section of the report to "11/30/1998".
You just have to change the names in parenthesies to the names associated with the Section and Control that you want changed at run-time.