Remove part of Page Header on last page

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report that has a Page Header that I want to print on every page,
except on the last page, where I only want some of the information from the
Page Header to print. I tried adding code to remove the information by making
these controls invisible on the ReportFooter_Print event, which previews
fine, but when it's actually printed it makes these controls invisible on all
pages. Is this possible to do?
 
In the PageFooter OnFormat event write the code

'Check if last page and return the oposite value to hide the text box
Me.TextBoxName.Visible = Not ( [Page] = [Pages])
 
Back
Top