finding Report control properties

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

this should be easy, but I just can't find it

prior to printing a report I want to change the caption of various items.
I am passing the public variables from a form to the report, but
I am unable to set the properties for the control I wish to change
ie. Title_Report_lbl.caption = My_Title

I can't seem to find the caption property for the control

regards
Mike
 
May be a timing issue.

To set the Caption of a label on the report, use the Open event of the
report (or event the Format event of the section containing the label).

Attempting to set the caption from code within your form after the report is
open will probably be too late.
 
All controls with a caption, have a caption property!

Conversely, all controls without a Caption property, just do not have
captions.

Say X is the name of a control on your report, and X is a type of control
that does have a caption; eg. a command button. This will change the caption
of X:

me![X].caption = "blah"

HTH,
TC
 
Back
Top