View Single Post
  #3  
Old May 27th, 2010, 08:58 PM posted to microsoft.public.access.reports
Vagabond
external usenet poster
 
Posts: 7
Default Report footer position

Thanks g_b, that got me thinking along the right lines. In fact, it's a quite
straight forward (as usual!). You simply have 2 text boxes in the page
footer called, say, page_footer and report_footer and use the following code:

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

If Me.Page = Me.Pages Then
Me.Report_Footer.visible = True
Me.Page_Footer.visible = False
Else
Me.Report_Footer.visible = False
Me.Page_Footer.visible = True
End If

End Sub

The only proviso is that you must have a field that =[pages] somewhere on
the report. This would often be the case anyway but you can always add a
hidden control. Also, you wouldn't have to use text boxes, you could use
individual controls but then you would have to name them all explicitly to
hide or show them.

Thanks for the lead!!

"ghetto_banjo" wrote:

If your report footer is something simple, you could use some VB code
to use the Page Footer as a work around. create a function like:


Function DisplayReportFooter() as string

If Me.Page = Me.Pages Then
DisplayReportFooter = "blah blah blah"
Else
DisplayReportFooter = ""
End If

End Function


Then in the Page Footer, you make a text box that is set to:
=DisplayReportFooter()

Then it will only display "blah blah blah" on the bottom of the last
page. Hopefully that helps. You could use multiple text boxes and
functions if you need to.
.