Programmatically changing the text of a label on a report

  • Thread starter Thread starter Fabio Papa
  • Start date Start date
F

Fabio Papa

Is it possible to programmatically change the text of a label in a report
(in a .mde)? I have a form with a button that brings up a report. A label
on the header of the report needs to change based on one of the fields of
the form. Thanks.
 
Place code in the On Format event of the section containing the label:
Me.lblMyLabel.Caption = Forms!frmA!txtMyText
 
Back
Top