Programmatically Adjusting Page Header

C

Chaplain Doug

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.
 
F

fredg

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
 
C

Chaplain Doug

Thank you Fred. I used Me.Section("PageHeader").Visible and
Me.Section("PageFooter").Visible. These seemed to work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top