You need to create a couple of event procedures, thus:
Code:
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
Me.PageFooterSection.Visible = (Me.Page Mod 2 = 1)
End Sub
Private Sub Report_Page()
Me.PageFooterSection.Visible = True
End Sub
You use the PageFooterSection's OnFormat event to set visibility depending on whether the page number is odd or even (Me.Page returns the page number, then Mod 2 returns 1 if the page is odd, 0 otherwise).
You then need to use the Report's OnPage event to set the footer's visibility back to True at the start of each page, otherwise once the footer has been made invisible for the first time (on page 2), the subsequent page footer's OnFormat events won't be called unless the footer is visible.
I was hoping to somehow get rid of the footer altogether and leave adequate space of other stuff, but seems I'll just have to work around the layout of the documents a bit more.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.