View Full Version : Hiding Page Footer if not last page


ions
04-21-2009, 08:05 AM
Dear MS Access Expert.

What is the code for hiding a page footer if the page being displayed is not the last page?

Thank you very much

Peter.

Simon_MT
04-21-2009, 11:09 AM
It would seem fairly elementary, but it isn't! If you want the Page Footer to only appear on the last page you have to set the elements in the Footer to Visible=False and then trigger Visible=True on the last page.

If you have something like an Invoice on the Invoice Footer section you set the Page Footer elements Visible=True.

Its sounds a bit daft but the Page Footer does not seem to be able to accept Visible=False

Simon

ions
04-21-2009, 11:17 AM
>>>If you want the Page Footer to only appear on the last page you have to set the elements in the Footer to Visible=False and then trigger Visible=True on the last page.

Yes how do I accomplish this?

Peter

Simon_MT
04-21-2009, 11:25 AM
What are you reporting on?

Simon

ions
04-21-2009, 01:27 PM
Purchase Order

Thinh
04-21-2009, 01:44 PM
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
Me.txtPages.Visible = (Me.Page = Me.Pages)
End Sub

Simon_MT
04-21-2009, 01:47 PM
Try

1) Create a Header and Footer for each Purchase Order.
2) Page Footer controls should be visible
3) Page Header set all Page Footer control to Visible = False
4) Purchase Order Footer set all Page Footer controls to Visible = True

Simon

wiklendt
04-21-2009, 09:34 PM
What is the code for hiding a page footer if the page being displayed is not the last page?

Use the report footer - it only shows at the end.

Simon_MT
04-22-2009, 01:06 AM
The problem with the Report Footer is positional. The Page Footer is positioned on the bottom of the page which suits customised stationery.

Simon

wiklendt
04-22-2009, 04:23 PM
The problem with the Report Footer is positional. The Page Footer is positioned on the bottom of the page which suits customised stationery.

Simon

ok, i see. sort of...