Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2016-11-21
6
40 Views
Last Modified: 2016-11-22
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
Comment
Question by:Juan Ocasio
  • 3
  • 3
6 Comments
 
LVL 19

Accepted Solution

by:
crystal (strive4peace) - Microsoft MVP, Access earned 500 total points
ID: 41896693
> "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
 
LVL 14

Author Comment

by:Juan Ocasio
ID: 41896766
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
 
LVL 14

Author Comment

by:Juan Ocasio
ID: 41897512
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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 
LVL 19
ID: 41897528
on the Format tab of the Property Sheet for the group header, set Repeat Section to Yes
0
 
LVL 14

Author Comment

by:Juan Ocasio
ID: 41897535
Thanks Crystal.  I figured that out by googling! LOL

Thanks for your help in steering me in the right direction.  Greatly appreciated!
0
 
LVL 19
ID: 41897565
you're welcome ~ happy to help
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question