L
Love Buzz
Hi all.
I am trying to average the total records by date range. I am getting an
error message with my AVG expression. Here is a snap shot of the SQL I have
so far.
SELECT [RCC Customer List].[Account #], Count([Incoming Return Item
Detail].ReturnReasonCode) AS CountOfReturnReasonCode,
Avg([CountOfReturnReasonCode]) AS Expr1
FROM [Incoming Return Item Detail] INNER JOIN [RCC Customer List] ON
[Incoming Return Item Detail].DepositingAccount = [RCC Customer
List].[Account #]
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]))
GROUP BY [RCC Customer List].[Account #];
Thanks for your help.
I am trying to average the total records by date range. I am getting an
error message with my AVG expression. Here is a snap shot of the SQL I have
so far.
SELECT [RCC Customer List].[Account #], Count([Incoming Return Item
Detail].ReturnReasonCode) AS CountOfReturnReasonCode,
Avg([CountOfReturnReasonCode]) AS Expr1
FROM [Incoming Return Item Detail] INNER JOIN [RCC Customer List] ON
[Incoming Return Item Detail].DepositingAccount = [RCC Customer
List].[Account #]
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]))
GROUP BY [RCC Customer List].[Account #];
Thanks for your help.