A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Do reports suck? How to set conditional page breaks between subrep



 
 
Thread Tools Display Modes
  #1  
Old May 11th, 2010, 08:24 AM posted to microsoft.public.access.reports
ralf
external usenet poster
 
Posts: 28
Default 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  
Old May 11th, 2010, 01:39 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default 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  
Old May 13th, 2010, 07:05 AM posted to microsoft.public.access.reports
Larry Linson
external usenet poster
 
Posts: 3,112
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:16 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.