M
mastermars via AccessMonster.com
Hello, I could really use some help as I have been pulling my hair out on
this one.
I have invoice created in reports and I am trying to print the total on the
last page of the invoice from the page footer.
This is what I have in the page footer
Sub total
VAT
Total
I added a text box in the page footer and put the following in =[Page] &
" of " & [Pages]
I set the cells I wanted on the last page only to visible=no
Then in the page footer property settings, under –Event –on format I have the
following code:
---------------------------------------------------
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As
Integer)
If [Page] = [Pages] Then
[Total].Visible = True
End If
End Sub
What am I doing wrong?
Many thanks
Sean
this one.
I have invoice created in reports and I am trying to print the total on the
last page of the invoice from the page footer.
This is what I have in the page footer
Sub total
VAT
Total
I added a text box in the page footer and put the following in =[Page] &
" of " & [Pages]
I set the cells I wanted on the last page only to visible=no
Then in the page footer property settings, under –Event –on format I have the
following code:
---------------------------------------------------
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As
Integer)
If [Page] = [Pages] Then
[Total].Visible = True
End If
End Sub
What am I doing wrong?
Many thanks
Sean