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