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

Placing Text from a form on a report

Status
Not open for further replies.

tbonehwd

IS-IT--Management
Jul 28, 2005
45
US
I have a form that users enter criteria to pull data from our SQL server and get an Access report with the results. I would like to add a field to the form that would allow them to describe what they ran and then place that descriptive text on the report in the header so when they print it they know what it is. Has anyone done somthing like this if so could you give me an idea?

Thanks,

TBonehwd
 
I ran into the same challenge a few months back. Here's what worked for me:

For each criteria, place unbound text boxes in the report header. Set the Control Source for each text box to the appropriate crieria (e.g. = Forms![Criteria Form]![Criteria Text Box name]). This data will appear on the report.

If you want a single line of descriptive data, just add the extra unbound field to your criteria form and follow the steps listed above.

As long as your criteria form Modal property is set to "Yes", then this should work.

I hope this helps.

FloydPepper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top