As I said in the original post... you should replace those with the names of
the TextBoxControls you create in the "Page Footer" and the "Report Footer".
The TextBox in the Report Footer would have a Control Source that Sums the
value and, if you don't want it displayed there, set its Visible property to
No, The TextBox in the Page Footer would be unbound... the code shown would
set its value, only on the very last page.
The code shown, again as I said in the original post, should be in the Print
event of the Page Footer.
I don't know how I can make this any simpler or more explicit. If you have
other _specific_ questions, post back here to ask.
Larry Linson
Microsoft Access MVP
Timothy Langaster said:
Dear Larry Linson
Thank you for your email reply.
I can't understand what is the "txtPageFootTotal "and "txtReportFootTotal
"and how I can use it.
Please be so kind to explain me as I am novice in this matter.
Thank you for your cooperation.
Larry Linson said:
message Dear Tina,
Thank you for your reply. It's the same also to Access 2007 but my
question
remain as I need to put the total of the invoice in the last page and
in a
specific position.
It is always considerate if you give the entire requirements in your
initial
question, so people do not waste time giving you answers that you
immediately reject and add an additional requirement (in this case "and
in a
specific position").
A Total for the entire Report must needs be calculated in the Report
Footer.
You can set the Visible property of that Control to No, and then put your
code in the Print event of the Page Footer to test and copy it there.
If [Page] = [Pages] Then
Me.txtPageFootTotal = Me.txtReportFootTotal
Me.txtPageFootTotal.Visible = True
End If
That's air code, untested, but I suspect it will work if you change the
"txtPageFootTotal" and "Me.txtReportFootTotal" to your Control names.
Larry Linson
Microsoft Access MVP