Hi Everyone,
I have designed an invoice in Access that records the amount of hours an employee works * their hourly rate. e.g
Hours Rate Total
Alan Martin 38 £10 £380
The problem I am having is in the page footer. If the invoice only requires one page then I want the text to say 'Total Amount'
However, if the invoice spans multiple pages then I want the text in the page footer to say 'Sub Total' until it gets to the final page where it says 'Total Amount'.
I have tried to use an If Statement based on page number, but with limited success. The code I used was:
IIF([Page]>1,Total Amount,Sub Total).
This has flaws as it only works properly if the invoice is 2 pages - if the invoice is only one page long it prints 'Sub Total'.
Can anyone please help me with this problem?
Thanks in advance
Kobe1
I have designed an invoice in Access that records the amount of hours an employee works * their hourly rate. e.g
Hours Rate Total
Alan Martin 38 £10 £380
The problem I am having is in the page footer. If the invoice only requires one page then I want the text to say 'Total Amount'
However, if the invoice spans multiple pages then I want the text in the page footer to say 'Sub Total' until it gets to the final page where it says 'Total Amount'.
I have tried to use an If Statement based on page number, but with limited success. The code I used was:
IIF([Page]>1,Total Amount,Sub Total).
This has flaws as it only works properly if the invoice is 2 pages - if the invoice is only one page long it prints 'Sub Total'.
Can anyone please help me with this problem?
Thanks in advance
Kobe1