Multiple Subreport Problem

R

Ryan

Hello, I have 5 subreports in one report. Each sub report runs off of its
own query which queries based on the field that comes up in the main report.
My problem is that the data repeats itself and what should be a 3 page report
becomes 64 pages of the same thing repeated over and over. Any help would be
appreciated

Ryan
 
M

Muskiefan

On each of your subreports is the data you are displaying in the detail
section? It probably needs to be in a group header based on the link in the
main report. i.e. if the link is CustomerId, on the subreport create a group
header on CustomerId and put the fields in that section.
 
K

KARL DEWEY

Each sub report runs off of its own query which queries based on the field
that comes up in the main report.
I can understand 'Each sub report runs off of its own query' but not the
latter part of the above statement.

Can you explain?
 
R

Ryan

each sub report would run independantly iguess is the best way. Each Query
sorts the data the way I need it and then i want to display it on the main
report. what is happening is that all the reports are running and displaying
the information, but then it will display it all again, and again, and
again...not sure why this is happening?

Ryan
 
M

Marshall Barton

Ryan said:
Hello, I have 5 subreports in one report. Each sub report runs off of its
own query which queries based on the field that comes up in the main report.
My problem is that the data repeats itself and what should be a 3 page report
becomes 64 pages of the same thing repeated over and over. Any help would be
appreciated


A common cause of that problem is when the main report's
record source query includes the same tables that are used
in the subreports.

The main report's record source query should only include
records that are used in the main report and the subreport
**controls** LinkMaster/Child properties take care of
linking the subreports' records to the current main report
record.
 
K

KARL DEWEY

Each Query sorts the data the way I need it
Any sort in a query is ignored in a report.
This I do not follow. What is the Record Source for the main report?
 
R

Ryan

Thanks, I will give that a Try

Ryan

Marshall Barton said:
A common cause of that problem is when the main report's
record source query includes the same tables that are used
in the subreports.

The main report's record source query should only include
records that are used in the main report and the subreport
**controls** LinkMaster/Child properties take care of
linking the subreports' records to the current main report
record.
 

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