Solved

Force sub report to keep together

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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

773 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