Solved

Force sub report to keep together

Posted on 2014-09-12
5
654 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…

685 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