finding Report control properties

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
 
A

Allen Browne

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

TC

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
 

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