D
Der Musensohn
I have a table of accounting transactions. I want to create a cross tab
query that will display totals based on accounts by week. So far I have:
PARAMETERS [Begin week date] DateTime, [End week date] DateTime;
TRANSFORM Sum([Transactions fixed].Amount) AS Amount
SELECT Therapists.TherapistID, [Transactions fixed].Class
FROM Therapists INNER JOIN [Transactions fixed] ON Therapists.[Customer
Type] = [Transactions fixed].Class
WHERE ((([Transactions fixed].Date) Between [Begin week date] And [end week
date]) AND (([Transactions fixed].Type)="invoice"))
GROUP BY Therapists.TherapistID, [Transactions fixed].Class
ORDER BY [Transactions fixed].Class
PIVOT [Transactions fixed].Account;
Ultimately, I need the query to display all accounts even if there are 0
transactions.
Thanks for any help.
query that will display totals based on accounts by week. So far I have:
PARAMETERS [Begin week date] DateTime, [End week date] DateTime;
TRANSFORM Sum([Transactions fixed].Amount) AS Amount
SELECT Therapists.TherapistID, [Transactions fixed].Class
FROM Therapists INNER JOIN [Transactions fixed] ON Therapists.[Customer
Type] = [Transactions fixed].Class
WHERE ((([Transactions fixed].Date) Between [Begin week date] And [end week
date]) AND (([Transactions fixed].Type)="invoice"))
GROUP BY Therapists.TherapistID, [Transactions fixed].Class
ORDER BY [Transactions fixed].Class
PIVOT [Transactions fixed].Account;
Ultimately, I need the query to display all accounts even if there are 0
transactions.
Thanks for any help.