I have an sales & charges database, so they will enter every day sales and charges and then run a reports every day, how can show in my report the mtd and ytd totals?
here my report query:
thank you
here my report query:
Code:
SELECT Transactions.SelectedPrint, Transactions.TransactionDate, Transactions.TransactionID, Transactions.EmployeeID, [Transactions Details].TransactionID, [Transactions Details].CodeID, [Transactions Details].Amount, CodesCategory.CodeCategoryID, CodesCategory.CategoryName, DateAdd("m",1,DateSerial(Format([TransactionDate],"y"),Format([TransactionDate],"m"),1))-1 AS EOMonth
FROM CodesCategory INNER JOIN ((Transactions INNER JOIN [Transactions Details] ON Transactions.TransactionID = [Transactions Details].TransactionID) INNER JOIN Codes ON [Transactions Details].CodeID = Codes.CodeID) ON CodesCategory.CodeCategoryID = Codes.CodeCategoryID
WHERE (((Transactions.SelectedPrint)=Yes));