Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suppress Header On Last Page

Status
Not open for further replies.

coolscan3

Programmer
Oct 23, 2001
40
0
0
GB
Is it Possible to suppress the header on the last page of a report.

Private Sub Report_Page()

If Me.Page = Me.Pages Then

Me.PageHeaderSection.Visible = False

Else

Me.PageHeaderSection.Visible = True

End If

End Sub

This code works but not until you have diplayed the last page and then moved away from the last page
 
Try putting the code in the on format event of the Page Header.

Here's an attempt at a one.liner
[tt]Me.PageHeaderSection.Visible = not (me.page = me.pages)[/tt]

There's a report forum, where report questions are probably more appropriate (forum703)

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top