If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Do reports suck? How to set conditional page breaks between subrep
Sorry for this harsh subject, but I'm so frustrated about reports in MS Access.
I have a report with 9 subreports. Each of those subreports should be on a new page. If I place a page break control between those than I have empty pages, since some subreports may be empty (depending on existing recordsets). Ok, what I could do now is to set 'Keep Together' to yes, but that requires that I set the size of each of those 9 supreports to their original/actual size. But the report size is limited and I approach this limit after resizing the first 4 subreports already. I really don't know what to do. Reporting tutorials in books and Internet are very shallow and the MS help is far from being helpful. It would be great if someone is experienced enough to give me some hope or at least to confirm that there is no way to solve this issue. Perhaps there is a complete different approach to follow? Thanks, Ralf |
#2
|
|||
|
|||
Do reports suck? How to set conditional page breaks between subrep
Ralf wrote:
I have a report with 9 subreports. Each of those subreports should be on a new page. If I place a page break control between those than I have empty pages, since some subreports may be empty (depending on existing recordsets). Ok, what I could do now is to set 'Keep Together' to yes, but that requires that I set the size of each of those 9 supreports to their original/actual size. But the report size is limited and I approach this limit after resizing the first 4 subreports already. I really don't know what to do. Reporting tutorials in books and Internet are very shallow and the MS help is far from being helpful. It would be great if someone is experienced enough to give me some hope or at least to confirm that there is no way to solve this issue. Perhaps there is a complete different approach to follow? The subreport controls need to have their CanShrink property to Yes so they won't take up any space when they have no date to report. To deal with the blank page caused by a corresponding empty subreport, for each subreport, add a line of code to the section's Format event procedure similar to: Me.pgBreak1.Visible = Me.subreportcontrol.Report.HasData -- Marsh MVP [MS Access] |
#3
|
|||
|
|||
Do reports suck? How to set conditional page breaks between subrep
Marsh is a nice guy and answered your question without a comment.
But I'll tell you that you are correct on one point. Coming in to a newsgroup where people like the product, especially those who answer the questions, and beginning by saying, "Your baby's ugly. Now tell me how to do .. . ." is not the best way to "win friends and influence people". For your information, I've worked with Report Generators in a number of languages, dating back to the 1960s, and I haven't found any that are even close to being as capable and as easy to use as Access reports. I've seen very impressive work done with Crystal Reports, but the fellow who did it told me that he didn't find it nearly as easy to use as Access reports. And, fortunately, there are a lot of people willing to help -- but it'll be better if you don't take your frustration out on them. SMILE Larry Linson Microsoft Office Access MVP |
Thread Tools | |
Display Modes | |
|
|