Review
https://www.access-programmers.co.uk...-footer.56654/
https://microsoft.public.access.repo...ti-page-report
For a page count or sum, here is example code behind my report:
Code:
Option Compare Database
Option Explicit
Public intPageCount As Integer
Public intPageTotal As Integer
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
'increment counters for each record printed
intPageCount = intPageCount + 1
intPageTotal = intPageTotal + Nz(Me!Qty, 0)
End Sub
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As Integer)
'set textboxes in footer
Me.tbxPageCount = intPageCount
Me.tbxPageTotal = intPageTotal
'reset counters
intPageCount = 0
intPageTotal = 0
End Sub