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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Header On Last Page Only

Status
Not open for further replies.

leckie

Programmer
Apr 19, 2001
65
0
0
GB
I need to be able to either enable page header on the last page of a report (because of pre-printed stationary) or insert blank lines. The last page in this instance is always page 4 . . . I have tried to recognise page 4 on the page header format of the page and then make a sub report visible on page 4 but it slips onto page 3 . . any help much appreciated . .
 
If the last page is always 4 then you can just code it in the format event of the pagefooter. Something like this:

Private Sub PageFooter_Format(Cancel As Integer, FormatCount As Integer)

If Me.PageNumber <> 4 Then
Me.PageNumber.Visible = False
Else
Me.PageNumber.Visible = True
End If

End Sub
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top