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!

Put Criteria in Report? 1

Status
Not open for further replies.

BLutgen

Technical User
May 25, 2001
47
US
I have report which is based on a query. The query gets its criteria to run from two text boxes and a combo box on a form. Basically the combo box is a customer, and the text boxes are beginning date and end date. On my report, in the report header, I want the customer name and those dates to appear that were entered into the boxes on the form. That way, you can tell who and when the information is for. Do I use text boxes in the report header? Any help would be great.

Brad
 
You can put the controls anywhere you would like, the report header is a good place though. Set the control sources of the report like this:

Company
=Forms!MyFormName!MyCompanyComboBoxName

Dates
="Between " & Forms!MyFormName!MyStartDate & " and " & Forms!MyFormName!MyEndDate

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top