no page break on last page but one

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top