I am trying to get the totals of a table by client by type of income.
This query will get what I am looking for with each unique combination
as a row:
SELECT Sales.Client, BillCode.Type, Sum(Sales.Amount)
FROM Invoice_Details INNER JOIN BillCode ON Sales.BillCode =
BillCode.id
GROUP BY Client, Type;
However, what I would like to get is a report that has clients as rows
and the total sales amount for each bill code as columns.
I have tried to do a crosstab but the wizard confuses me more than
helps me.
If this in fact a good time for a crosstab, please show me what it
would look like.
If not, please tell me how to attack this.
I can get it to work with subqueries but the more fields I have, the
more complicated it gets to work with.
Also, can an access table be updated by a crosstab?
Thanks.