Separate Total Page

NLR

Registered User.
Local time
Today, 02:42
Joined
Aug 29, 2012
Messages
71
Hi,
I have a report with 2 groups. Subtotals for the 1st group on each page and a grand total on the last page. I need to have all of the 1st group's subtotals and the grand total on a separate page at the end of the report. I have no idea how this can be accomplished. Any help is much appreciated.
Thanks!
 
I'm unclear on you explanation. Maybe you could show it.
e.g.

page 1
group 1
group 2
new page
group 1 subtotal
group 2 subtotal
new page
grand total

From you description, I don't know what happened to group 2 subtotal or if there is one. Is my above example correct? Please change it to be the way you want and we'll see if we can help.
 
Hi James,

Sorry if I wasn't very clear.
I have a report that has 20 pages. Each page has a group 1 and a group 2. The group 2 fields are all summed. The group 1 is the subtotoal of all group 2.
Ex.
page 1
Department1
Cust1 Total of #s1 total of #s2 total of #s3
Cust 2 Total of #s1 total of #s2 total of #s3

Department1 Subtotals: #s1 #s2 #s3

Next page will display the same field #s for Department 2 with Department 2 subtotals. And, so on for the next 19 pages for 19 Different Departments.
I need the Department subtotals on the last page along with the grand total of all the departments.
Ex of last page:

Department1 Subtotals: #s1 #s2 #s3
Department2 Subtotals: #s1 #s2 #s3
Department3 Subtotals: #s1 #s2 #s3
etc.

Grand Totals: #s1 #s2 #s3


Thanks for your help!
 
Normally you would put the subtotals in the group footer. But the group footer will appear before the next group begins. My understanding is that this is what you don't want. Instead you want the group subtotals to all appear at the end of the report just prior to the grand total.
So how to make the subtotals appear at the end of the report.
An obvious method would be for your group footer to pass the data to vba which builds an array that keeps track of the data and gives it back at the end of the report in the report footer. I haven't done this before, so don't know how challenging it would be to print out the subtotals from the data returned by VBA.
Are there always 19 departments? Or does this fluctuate?
Another option if the number of departments is fixed is to create some hidden fields for each group which the data will be stored in and referenced at the end of the report. You may be able to directly save them into the subtotal field at the end of the report. You'd need 19 fields which would need to have different names (e.g. subtot1, subtot2, etc). Then in the grouping footer, index to the correct subtotal control.
That's the two options I can think of, there may be a better way that I'm not thinking of.
Anyone else have better ideas?

If I'm not understanding correctly what you want, make sure you clarify.
 
I'd try putting them in the report footer. If that works they would be at least on the last page. The question then would be whether you can put in something that would cause the report footer to break to a new page.
 
Hi,
I have a report with 2 groups. Subtotals for the 1st group on each page and a grand total on the last page. I need to have all of the 1st group's subtotals and the grand total on a separate page at the end of the report. I have no idea how this can be accomplished. Any help is much appreciated.
Thanks!


I do this a lot. I repeat all the groups totals on the last page with the grand total.

The easiest way I found to do this is use a sub report. No VBA coding required. No extra stuff to do on the report. Very simple to implement and very powerful.

You could try basing the sub report on the same query at the report. In the sub report only show the group totals. Add this sub report to your report just above the grand totals. Ot have the grand totals in the sub report. Your choice.
 
Last edited:
possible for you to upload your db?
 

Users who are viewing this thread

Back
Top Bottom