Programmatically Adjusting Page Header

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

Guest

Access 2003. I want to programmatically set the page header and page foot to
visible=false. I have tried:

Report.PageHeader.Visible=false

This does not work and generates a compile error. However, I can set the
visible property on the Detail section and the ReportFooter section using
Detail.Visible and ReportFooter.Visible.

How may I accomplish this programmatically on the PageHeader and PageFooter
sections? Thanks for the help.
 
Access 2003. I want to programmatically set the page header and page foot to
visible=false. I have tried:

Report.PageHeader.Visible=false

This does not work and generates a compile error. However, I can set the
visible property on the Detail section and the ReportFooter section using
Detail.Visible and ReportFooter.Visible.

How may I accomplish this programmatically on the PageHeader and PageFooter
sections? Thanks for the help.

Me.Section(3).Visible = False ' Page Header
Me.Section(4).Visible = False ' Page Footer

or if the code is placed in the Page Header or Page Footer Format
event, simply:
Cancel = True
 
Thank you Fred. I used Me.Section("PageHeader").Visible and
Me.Section("PageFooter").Visible. These seemed to work.
 
Back
Top