Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Force sub report to keep together

Posted on 2014-09-12
5
Medium Priority
?
780 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 58
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 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 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 58
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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

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.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

783 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