I will try and explain what i am trying to get done !
I have 2 tables Company & Invoices
On my company table I have Company name, Total Sales, and total Certs. (Total sales is nothing to do with Invoice total)
On my Invoice I am holding Details and Invoice cost.
I have joined the tables so I now have the following
Co_pk Invo_pk Name Total Sales Total Certs Details Invoice cost
1 1 Company1 100.00 500 Details1 20.00
1 2 Company1 100.00 500 Details2 30.00
1 3 Company1 100.00 500 Details3 50.00
2 4 Company2 50.00 300 Details1 100.00
3 5 Company3 120.00 250 Details1 65.00
3 6 Company3 120.00 250 Details2 85.00
Etc…
So on my report I am trying to show the following(have grouped by CO_PK :-
Company 1 100.00 500
Details1 20.00
Details2 30.00
Details3 50.00
Company2 50.00 300
Details1 100.00
Company3 120.00 250
Details1 65.00
Details2 85.00
-------------------------------------------------------------------------------
Total SAles 270.00
Total Certs 1050
Total Invoce Cost 350.00
I have this all working on my report but cannot seem to generate the correct totals at the bottom, it keeps adding up all the total sales,certs etc..without the grouping so I get 590 for total Sales and not the 270 in the total no matter what i do with the SUM grouping..
Can this be done on the report?
Thanks
Paul