Solved

Force sub report to keep together

Posted on 2014-09-12
5
670 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
[X]
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
  • 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
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 …

739 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