no page break on last page but one

  • Thread starter Thread starter Michel Peeters
  • Start date Start date
M

Michel Peeters

I use following code in the on format event from the section which contains
the pagebreak. It cancels the pagebreak on the last page but one:

If Me.Pages - Me.Page = 1 Then Me.PageBreak1.Visible = False

This works fine except "Pages" shows one page more as my report.
How can I avoid this?

Michel
 
Back
Top