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

Changing Label Caption in a Report at runtime

Status
Not open for further replies.

diablo007

IS-IT--Management
Jul 30, 2002
1
NZ
Hi, Im having a bit of trouble changing the label on a report dynamically at runtime. The report is suppose to show sales figures for advisers and at the top in a label box it should show the date those sales figures relate to. The user is able to select the start date and end date and the report runs fine. Except when i try to update the label box caption (when the report is opened) to the start and end date, the caption property for the label dosnt appear. In fact when i type the label name and then "." no options appear at all. I have to reference it using me.label
but then there is no caption option there either....
Im using Access 2000.
Any help would be much appreciated.
Thanks

 
Hi,

If I understand you correctly you want to change a label's caption in a report to the start/end dates. Add the following code to the ON FORMAT event of the section your label is located:

Me!Label1.caption = "StartDate - EndDate"

Have a good one!
BK

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top