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!

Sub report question 1

Status
Not open for further replies.

ptrifile

Technical User
Aug 10, 2004
457
US
I have a blank report that has about 5 sub reports on it....Those 5 reports all pull from the same query and it reports on a date range, but i have to enter that date range in 5 different times, is there anyway around this?

Thanks!

Paul
 
Have you tried setting that date range as a parameter under the "Query" menu item in the query design view??
 
Yes I have done that, however it still asks me to enter the date range for each sub report when the report is run.

Paul
 
You could place a text box on a form, and enter the date once in the text box. In all 5 querys, reference the text box in the criteria section of the date field:

Between [Forms]![YourFormName]![txtStartDate] And [Forms]![YourFormName]![txtEndDate]

-Gary
 
glalsop gets a star for his contribution to the SOP Club (Stamp Out Parameters). Using form controls provides many more features than parameter prompts.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top