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  

Conditional Page Break produces intermediate blank pages



 
 
Thread Tools Display Modes
  #1  
Old April 27th, 2005, 04:20 PM
ijazbof
external usenet poster
 
Posts: n/a
Default Conditional Page Break produces intermediate blank pages

Hi:

I am trying conditional page breaks in a report so I followed th advice in
Access help that says you have put a page break control in the section
youwant the break, then in the page header set the visible property to false
in the format event. in the detail section were I put the page break control
I have a record counter and in the format event for the section whenever the
counter reaches 15 and it multiples I set the visible property of the
pagebreak control to true. But the amazing thing is that produces 4 pages of
a report that should have only 2 pages (pages 2 and 4 are empty). Any help
will be greatly appreciated
  #2  
Old April 27th, 2005, 07:02 PM
Marshall Barton
external usenet poster
 
Posts: n/a
Default

ijazbof wrote:
I am trying conditional page breaks in a report so I followed th advice in
Access help that says you have put a page break control in the section
youwant the break, then in the page header set the visible property to false
in the format event. in the detail section were I put the page break control
I have a record counter and in the format event for the section whenever the
counter reaches 15 and it multiples I set the visible property of the
pagebreak control to true. But the amazing thing is that produces 4 pages of
a report that should have only 2 pages (pages 2 and 4 are empty). Any help
will be greatly appreciated



Lots of possible issues here.

Do you get the blank pages without the page breaks?

Maybe the detail has already spilled over to a new page?
What happens if you set the page breaks to occur after14
details?

How are you counting the details? If you're doing it with
code in the Format event procedure, you will have some
anomalous results. It should be done using a detail section
text box with the expression =1 and RunningSum set to Over
All or Over Group as appropriate.

--
Marsh
MVP [MS Access]
  #3  
Old April 28th, 2005, 08:51 PM
ijazbof
external usenet poster
 
Posts: n/a
Default

Thanks for your clues, it was not exactly the same flaw you mention but
forced me to re-think the report logic.

Regards
Hugo Alberto

"Marshall Barton" wrote:

ijazbof wrote:
I am trying conditional page breaks in a report so I followed th advice in
Access help that says you have put a page break control in the section
youwant the break, then in the page header set the visible property to false
in the format event. in the detail section were I put the page break control
I have a record counter and in the format event for the section whenever the
counter reaches 15 and it multiples I set the visible property of the
pagebreak control to true. But the amazing thing is that produces 4 pages of
a report that should have only 2 pages (pages 2 and 4 are empty). Any help
will be greatly appreciated



Lots of possible issues here.

Do you get the blank pages without the page breaks?

Maybe the detail has already spilled over to a new page?
What happens if you set the page breaks to occur after14
details?

How are you counting the details? If you're doing it with
code in the Format event procedure, you will have some
anomalous results. It should be done using a detail section
text box with the expression =1 and RunningSum set to Over
All or Over Group as appropriate.

--
Marsh
MVP [MS Access]

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
report sometimes prints final blank page (except for page header) John S. Ford, MD Setting Up & Running Reports 3 December 11th, 2004 11:50 AM
Finding/removing an "obascure" manual page break Fred Holmes Tables 2 November 5th, 2004 06:57 PM
conditional page break in access 2000 Jim Setting Up & Running Reports 1 September 14th, 2004 10:30 PM
Printing form view w/ page break Tim Tabor New Users 6 July 7th, 2004 01:40 PM
Adding text to blank pages Dave Page Layout 1 June 9th, 2004 06:54 AM


All times are GMT +1. The time now is 02:09 AM.


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