When i run a query I get error 3122, you tried to execute a query that does not specified the expression "TransactionDate" as part of an aggregate function.
sql View:
Thank you
sql View:
Code:
SELECT Transactions.TransactionDate, Transactions.TransactionID, Transactions.EmployeeID, [Transactions Details].TransactionID, [Transactions Details].CodeID, [Transactions Details].Amount, CodesCategory.CodeCategoryID, [B][COLOR=red]Sum(Abs(Format([TransactionDate],"yyyymm")=Format(Date(),"yyyymm"))*[Amount]) AS MTDRev[/COLOR][/B]
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.TransactionDate)>=[forms]![ReportDateRange]![BeginDate] And (Transactions.TransactionDate)<=[forms]![ReportDateRange]![EndDate]));
Thank you