sub-report based on same criteria as main report

Q

Question Boy

I have a report whihc include a sub-report.

The main report prompts the user to supply a year to filter the report's
data on. That said i need to use that same value to filter the sub-report as
well, How can i do this so I only ask the user once for the year?

Thank you

QB
 
A

Allen Browne

Use a form.

Set the Criteria of the query to read the value from the form, e.g.:
[Forms].[Form1].[Text0]

Have the subreport's query read the value from the same form.
 
Q

Question Boy

Thank you Allen for the rapid response.

I had thought of that, but was wondering if there wasn't a simple way to do
this without creating a form. I'm assuming based on your answer, the form
approach is the fastest and easiest solution. Thank you once again.

QB





Allen Browne said:
Use a form.

Set the Criteria of the query to read the value from the form, e.g.:
[Forms].[Form1].[Text0]

Have the subreport's query read the value from the same form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.
Question Boy said:
I have a report whihc include a sub-report.

The main report prompts the user to supply a year to filter the report's
data on. That said i need to use that same value to filter the sub-report
as
well, How can i do this so I only ask the user once for the year?

Thank you

QB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top