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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing code variable to report

Status
Not open for further replies.

Principal

IS-IT--Management
Oct 12, 2002
37
US
My code attempts to assign a string variable that will print on the first line of a label report. The question is how do I pass the variable to the report w/o Access prompting me for a parameter. I have a text box bound to the variable name. Pu another way, I want to use code to assign the value that will passed to the report w/o Access asking for input. Thanks
 
Hi

Is this bit of data on a form?

Is the form open when the report prints?

If yes to both, set source of control to:

= Forms!MyForm!MyControl

using your own form name and control name of course

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top