|
Question : Access: Grand Totals positioning in reports
|
|
well this is probably easy but I thought I would ask it anyway.
Ok I have several reports (Invoices) that are generated fom my tables. Some of the reports may spill over from one, two, three or even more pages depending on whats been input into my table. I am finding it a little strange to make my reports always dispay the SubTotal, GrandTotal and VAT tax elements at the bottom of the pages. When i put it into the report footer It some times displays half way up the page on the last page. And when I put the totals into the page footer then I sometimes get the totals repeating on successive pages in particular the second and third and not on the first page.
This combined with the fact that I have to actually put my grandTotals into the report Footer section in order to perform calcualted on my Details section (To show my grand totals)
Is there a way to force the Totals to the bottom of the last page or in fact the first page if the first page is not the end of the report? So if I had a single page report I want it at the bottom of that, If it spills over to 2 pages or less than 2 but more than one I want it at the botton of the second page and so on.
500 Points for a fully detailed explanation and guide n how it should be done,
Thanks Muchly
pjcrooks2000
|
|
Answer : Access: Grand Totals positioning in reports
|
|
First off in the iif statement I think the error is due to the equals sign befor the (SubTotal). It should work with just "=IIf([Page]=[Pages],(SubTotal),"")". One thing about this however is that it will return the last value of your SubTotal control rather than a sum.
Why dont you try =Sum([qty]*[price]) for the control in the report footer instead of =Sum([SubTotal]) and see if it works better.
|
|
|
|