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

not showing page header on first page 1

Status
Not open for further replies.

gavinjb

Programmer
Apr 24, 2003
106
GB
Does anyone know how to tell a report to only show the page header when you are not on the first page.

I have tried the following code, in both the on page and report header on Print events, but can't seem to get it to work.

If {Page] <> 1 Then
PageHeaderSection.Visible = True
End If

Thanks,

Gavin,
 
Try the PageHeaderSection_Format event:

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

If [Page] = 1 Then
Me.PageHeaderSection.Visible = False
Else
Me.PageHeaderSection.Visible = True
End If

End Sub


-Gary
 
worked perfectly, thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top