Subreports repeating on a page

M

MGregory

I have built a report with subreports. The subreports for the same record
repeat 2, 3 even 4 times in the printout. What is causing this?
 
M

Marshall Barton

MGregory said:
I have built a report with subreports. The subreports for the same record
repeat 2, 3 even 4 times in the printout. What is causing this?


That's almost always because the main report's record source
query joins to the same table as the subreport's record
source. Change the main report's record source so it only
retrieves data that belongs in the main report, This is
usually easiest if you work with the query alone so the
report doesn't confuse things.
 
M

MGregory

I had one query that gathered info from the various tables, and the main
report and the subreport were all based on that one query.

So, I created a new query that just gathered the info for the main report,
but now none of the subreports are showing.

Should each subreport be built on a separate query? Is that where I'm going
wrong? Thanks.
 
M

Marshall Barton

MGregory said:
I had one query that gathered info from the various tables, and the main
report and the subreport were all based on that one query.

So, I created a new query that just gathered the info for the main report,
but now none of the subreports are showing.

Should each subreport be built on a separate query? Is that where I'm going
wrong?


That depends on what the subreport are supposed to display,
but it is common for different subreports to use different
record source queries.

Check the subreport controls' LinkMaster/Child properties.
They may have been cleared or maybe you forgot to include
the linking field(s) in some of the queries.
 

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