On Open Event

T

tedmi

In an Open event for a report, I can set the Caption of a Label, but not the
text of an unbound textbox - produces the error "You can't assign a value to
this object."
Happens in both A2002 & 2007

Both objects can be assigned values in the Open event of a form.
Thanks for any info.
 
F

fredg

In an Open event for a report, I can set the Caption of a Label, but not the
text of an unbound textbox - produces the error "You can't assign a value to
this object."
Happens in both A2002 & 2007

Both objects can be assigned values in the Open event of a form.
Thanks for any info.

Well, a report is not a form.
The Open event is too early.
Use the Report's Report Header Format event.
 
K

Klatuu

Oh, and reviewing what Fred said, use the Format event of the section the
text box or label is in.
 

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