Programmatically changing the text of a label on a report

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.
 
D

Duane Hookom

Place code in the On Format event of the section containing the label:
Me.lblMyLabel.Caption = Forms!frmA!txtMyText
 
Top