Assigning a value to a text box.

P

Parker

Hi All,
I run code when a report opens. I'm using this syntax Me!textbox = a
calculated value. The textbox is unbound. I get an error saying I can't
assign a value to this object. I do this all the time with forms. Can I do
this in a report?

Thanks
 
J

Jeff Boyce

What happens if you run this later in the "opening" process, say, "OnFormat"
instead?

Regards

Jeff Boyce
Microsoft Office/Access MVP
 
F

fredg

Hi All,
I run code when a report opens. I'm using this syntax Me!textbox = a
calculated value. The textbox is unbound. I get an error saying I can't
assign a value to this object. I do this all the time with forms. Can I do
this in a report?

Thanks

If you can't simply enter the expression in the unbound control's
control source, try the Report's Report Header Format event.
 
Top