My Assistant
![]()
Custom Search
|
![]() ![]() |
![]() |
![]() Post#1 | |
Posts: 333 Joined: 12-February 13 ![]() | Hi, I have a report with several subreports. The last subreport, I want it to be on the last page of the entire report (as if there's a page break). Is this even possible? I hope this makes sense. Thanks in advance. |
![]() Post#2 | |
![]() Posts: 1,291 Joined: 2-February 00 From: Mississippi USA Central Time Zone ![]() | You can try adding a report footer on the report, place the subreport in the report footer and make the report footer property Force New Page to Before Section. let me know if that works for you. -------------------- Lee Ann Davidson |
![]() Post#3 | |
![]() UA Admin Posts: 36,203 Joined: 20-June 02 From: Newcastle, WA ![]() | This is exactly how I'd try to do it as well. Of course, we always appreciate feedback on actual results. -------------------- My Real Name Is George. Grover Park Consulting is where I did business for 20 years. How to Ask a Good Question Beginning SQL Server |
![]() Post#4 | |
Posts: 333 Joined: 12-February 13 ![]() | That is clever! Worked like a charm. ![]() |
![]() Post#5 | |
![]() Posts: 1,291 Joined: 2-February 00 From: Mississippi USA Central Time Zone ![]() | Glad to hear it worked. ![]() -------------------- Lee Ann Davidson |
![]() Post#6 | |
Posts: 333 Joined: 12-February 13 ![]() | I need to revisit this subject. As I mentioned earlier, the above recommendations worked for me. However, if the subform has nothing in it, I still get a full page of blank page with the original report header. What I want to do if there is no record in the subform, thenno report footer (no blank page). I tried the following workaround but to no avail: - show page header and page on the subreport: NO - CAN GROW, CAN SHRINK: YES - I put ' Cancel = True ' on the subreport NO DATA property none the above worked. I still get a full blank page with the Master Report's header/footer when the last subreport has no record. This post has been edited by tbs: Dec 5 2019, 04:06 PM |
![]() Post#7 | |
Posts: 333 Joined: 12-February 13 ![]() | I think I found the answer to my own question: In the main report property sheet, set the report footer height to 0", and YES to can grow. |
![]() Post#8 | |
Posts: 333 Joined: 12-February 13 ![]() | I spoke too soon. My 'what I thought was a' solution turned out to be not working. I'm back to my question from yesterday - how do I prevent the page from Forcing a New Page at the Report Footer if there is no record in the subreport? |
![]() Post#9 | |
Posts: 333 Joined: 12-February 13 ![]() | Now i'm 99.9% sure I got it this time. Report Footer should have subreport. Let's call it srpt1. Report Footer should have Force New Page - Before Section in the Property Sheet/Format. Then on the report load property, put in: If Me.srpt1.Report.HasData Then Me.ReportFooter.Visible = True Else Me.ReportFooter.Visible = False End If That did the trick, at least for now. |
![]()
Custom Search
|
![]() | Search Top Lo-Fi | 14th December 2019 - 11:43 AM |