[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 86
  • Last Modified:

Report not displaying all of the data from 2 sub reports in Access 2010

I had this question after viewing How to create multiple groups on Access report.

I have the 2 subreports added to my main report.  When I run my main report, not all of the data in my subreports display.  For some reason, the information is getting cut off if it reaches the next section.  So my page has an unused Report Header, a page Header and detail section.  I've placed all of the data in thge page header section.  I tried to put it in the detail section, but then it generated a page for each row of data.

Does anyone know how to make the report expand to include all of the data in my subreports?
BTW: I have the Default View set to Print Preview, so that the end user can print the report.  The two options I have for this is Print Preview and Report View.
0
Juan Ocasio
Asked:
Juan Ocasio
  • 3
  • 3
1 Solution
 
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
> "I tried to put it in the detail section, but then it generated a page for each row of data."

to eliminate duplicates in the Detail section, click in the RecordSource property for the subreport on the property sheet, and then on the builder ( ...) button. Turn on properties for the SQL/Query. Set Unique Values = true. Make sure there isn't an AutoNumber or something else on the grid that will cause duplicates anyway.  Without knowing what you are doing, I am just guessing.

The reason for not using the Detail section is usually to just show aggregated values.  Could you please explain what kind of data you have, what the goal is, and paste the SQL statement for the report?

> "So my page has an unused Report Header, a page Header and detail section"
be sure to close the space they take by clicking and dragging the bottom boundary of each section up when the cursor shape changes to a horizontal line with double-headed vertical arrow.
0
 
Juan OcasioAuthor Commented:
Hello Crystal:

Thank you for replying.  Please view the link in my post. it explains the type of data I am trying to display.  Due to privacy concerns, I cannot share the actual sql.  but in a nutshell I have a report that is pulling information from an entry form.  This form has subforms on in that are bound to temporary tables in my db.  What I need to do is display this information in my report under the main section of the report.  This data is detailed information of products/services based on the subforms.  one tab on the subform have products, the other has services.  So in my report, I want to display the information separately first products (this a section header - just a label) and then the services.  So in my previous post, it was recommended to do two subreports one for each, which run successfully on their own.  The issue arise when I add these two subreports to my main report.  What is happening is part of the data is cut off at the bottom (where the detail,page footer, and report footer are located.  When I put these two sections in the detail section of the report, it renders all of the data correctly, however it creates a page for each of rows returned.  So if my products returned 6 records and my services returns 7, I will see a total of 13 pages with the same infomation.

I hope this explains what I am trying to do a bit better.  I can try to Unique value to true, however I do not want it to not display actual data that may have duplicate information.

Thanks,

Juan
0
 
Juan OcasioAuthor Commented:
Hello:

So I've set up unique value to be true, and it seems to work, however it is not showing my header information on the next pages.  Any thoughts on that?

Thanks!

Juan
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
on the Format tab of the Property Sheet for the group header, set Repeat Section to Yes
0
 
Juan OcasioAuthor Commented:
Thanks Crystal.  I figured that out by googling! LOL

Thanks for your help in steering me in the right direction.  Greatly appreciated!
0
 
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
you're welcome ~ happy to help
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now