Hello all.
Okay. I am trying to build a query that captures the count and sum of amount from another query.
Expr1 = Expr1: DateDiff("d",[DepDate],[Date])
I get the expression is typed incorrectly or too complex message.
If I just group by Expr1 all by itself I get the same message. Any thoughts or advice? Thanks for your help.
Here is my SQL:
SELECT [Qry_Incoming Returns - By Account (Detail)].Expr1, Count([Qry_Incoming Returns - By Account (Detail)].Expr1) AS CountOfExpr1, Sum([Qry_Incoming Returns - By Account (Detail)].Amount) AS SumOfAmount
FROM [Qry_Incoming Returns - By Account (Detail)]
GROUP BY [Qry_Incoming Returns - By Account (Detail)].Expr1;
Okay. I am trying to build a query that captures the count and sum of amount from another query.
Expr1 = Expr1: DateDiff("d",[DepDate],[Date])
I get the expression is typed incorrectly or too complex message.
If I just group by Expr1 all by itself I get the same message. Any thoughts or advice? Thanks for your help.
Here is my SQL:
SELECT [Qry_Incoming Returns - By Account (Detail)].Expr1, Count([Qry_Incoming Returns - By Account (Detail)].Expr1) AS CountOfExpr1, Sum([Qry_Incoming Returns - By Account (Detail)].Amount) AS SumOfAmount
FROM [Qry_Incoming Returns - By Account (Detail)]
GROUP BY [Qry_Incoming Returns - By Account (Detail)].Expr1;