Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assign values to text box in report page header

Status
Not open for further replies.

xplo5iv

Technical User
Jan 5, 2005
75
GB
Hi

I'm using the code
Code:
 Me.Controls(txr) = rst("Work Type")
in a continuous form, which works fine. (txr is a string with the text box name.)

When I try to repeat the process on a report for printing, it gives the error "You can't assign a value to this object"

What am I doing wrong?

Thanks in Advance

Jonathan
 
Hi
Have you seen this (?):
How to assign a value to a Textbox in Report PageHeader
thread703-1090305
 
Thanks for the pointer, I made the mistake of putting it in the on open event. As the rest of my code was there I've changed them to labels, so they work now, but I'll know for future, too

Thanks


Jonathan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top