C
confused
Hi,
I have created a query using "group by" and am trying to find out how to
create a "Total" row at the bottom which adds up the numbers in each column.
(details of table and query below) Please, please can anyone help me?
Thankyou so much for your help
Cheers
Barbara
eg, I have grouped by "Type" so each type apears down the left.
Along the top I have headings such as "Count for that type", "No Vendors in
that type" and "no vendors in that type where the vendor is not IBM", "and
sum of the costs in that type"
So my table looks like:
Count for that type No. Vendors No. vendors not IBM
Sum cost
Type1 10 4 1
300.00
Type2 22 4 4
250.00
Type 3 12 5 3
400.00
TOTAL ? ? ?
?
My query at the moment is:
SELECT Type, Count(Type) AS [Count for that type],
Count(Vendors) AS [No. Vendor],
Count(IIf(Vendors Like '*IBM*',Null,1)) AS [No Vendors not IBM],
Sum(Cost) AS [Sum Cost]
FROM [myTable]
GROUP BY Type;
I have created a query using "group by" and am trying to find out how to
create a "Total" row at the bottom which adds up the numbers in each column.
(details of table and query below) Please, please can anyone help me?
Thankyou so much for your help
Cheers
Barbara
eg, I have grouped by "Type" so each type apears down the left.
Along the top I have headings such as "Count for that type", "No Vendors in
that type" and "no vendors in that type where the vendor is not IBM", "and
sum of the costs in that type"
So my table looks like:
Count for that type No. Vendors No. vendors not IBM
Sum cost
Type1 10 4 1
300.00
Type2 22 4 4
250.00
Type 3 12 5 3
400.00
TOTAL ? ? ?
?
My query at the moment is:
SELECT Type, Count(Type) AS [Count for that type],
Count(Vendors) AS [No. Vendor],
Count(IIf(Vendors Like '*IBM*',Null,1)) AS [No Vendors not IBM],
Sum(Cost) AS [Sum Cost]
FROM [myTable]
GROUP BY Type;