Seeking for a ForceNewPage global solution

  • Thread starter José António Silva
  • Start date
J

José António Silva

Assuming that ForceNewPage = 2, in a footer section, always produce a blank
page at the end of the report, the unique work around I can imagine is:

1)Assuming ascending order, programmatically get the maximum value of some
field (with no duplicate values) that may appear in the last report footer
section.

2)Save this value in a variable, for example, varIDDocument = 999.

3)Put the following code in the footer format event.
If Me.IDDocument.Value = varIDDocument Then
Me.footer1.ForceNewPage = 0
Else
Me.footer1.ForceNewPage = 2
End If

Despite this works fine, this is not a global solution, because I have to
type specific data dependent code.

Anybody knows a global solution to this????????

José António Silva
 

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