Solved

Force sub report to keep together

Posted on 2014-09-12
5
546 Views
Last Modified: 2014-09-12
I have a report with a number of subreports one after the other. I am using a report header for each report and leaving the page header blank. (I think if a page header is used in a report with subreports that the page header in subreports gets ignored?) but I cannot get the subreports to keep together resulting in a subreport form header appearing at the bottom of a page and no header appearing on the following page.

Looks bad. Help
0
Comment
Question by:DatabaseDek
  • 3
  • 2
5 Comments
 
LVL 57
ID: 40318999
Right...sub report headings are ignored, so you use the report header.   But that doesn't repeat across pages (since it's the "report", it only prints once).

So here's the trick:

MS Access - Repeating Sub-Report Headings on each page
http://www.experts-exchange.com/Database/MS_Access/VP_533.html

Jim.
0
 

Author Comment

by:DatabaseDek
ID: 40319039
Thanks Jim. That's brilliant.

But I still get the report header which is now new section "=1" appearing at the bottom of a page where there is no room for data. It's just a header at the bottom of the page
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 40319213
um...well Keep together is not a given, just something the report engine tries to honor if it can.  At some point, it does become impossible to keep everything together.

 It's hard to offer anything without seeing the report, but try this:

1. Select all your sub report controls, set the height to 0, and make sure the can grow is true.
2. Stack them one underneath the other as tight as you can get them
3. Shrink the detail section just to underneath the last one and make sure it's can grow is set to true.

See if that avoid the issue or not.

and usually, when I'm having spacing issues, I take the counter-intuitive approach of turning everything (can grow/shrink, Keep together, repeat section, page breaks, etc) off and see where I end up.  

Jim.
0
 

Author Closing Comment

by:DatabaseDek
ID: 40319306
Great Jim

Thank you
0
 
LVL 57
ID: 40319474
Did you get it working or no?   I'd rather have this deleted than closed if there is no clear solution.

Jim
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now