Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I skip pages?

Status
Not open for further replies.

cybermarcello

Technical User
Dec 3, 2003
16
BE
Hi there,

I have a main report containing 10 subreports. Every subreport has another report as it's recordsource. Now, depending on the value 10 different booleans, all or none of the subreports should be visible. I have achieved this by writing the on open event procedure for the main report, but for the invisible subreports blank pages are printed, and these pages should be skipped. Does anyone have an idea how to do this?

Thanks.
 
If you are using PageBreak controls, then you need to make them visible or invisible.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Thanks for your reaction dhookom, but I already use them. They do what they have got to do, that is start a new page after each subreport. What I tried is making the subreports invisible in the code dependent upon boolean values. However, it keeps printing empty pages after in the place of the invisible subreports...
 
Ok, so you are using pagebreak controls and you are making subreports visible or invisible.
Are the subreports and sections set to can shrink?
Are you setting the pagebreak controls to visible or invisible (suggested previously)?

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Now I get it, the subreports set to invisible is not enough, the pagebreak is outside the subreport and will force a blank page. Thanks DHookom, your tip directed me towards the solution.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top