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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top