L
Love Buzz
Hi all.
I have a query that I am creating to compare volumes to previous day
averages. What I am trying to do is have the query prompt me twice for a
date range. The first prompt will be a specific date and the second will be
a range of days. From those results I want to compare the daily volume to
the average of the range of days I have selected.
Here is what I have now and obviously I am not getting the result I am
looking for. Any ideas? Thanks for your help.
SELECT [Incoming Return Item Detail].DepositingAccount, Count([Incoming
Return Item Detail].ReturnReason) AS CountOfReturnReason,
[CountOfReturnReason] AS Expr1
FROM [RCC Customer List] INNER JOIN [Incoming Return Item Detail] ON [RCC
Customer List].[Account #] = [Incoming Return Item Detail].DepositingAccount
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]) AND (([Incoming Return Item Detail].Date) Between [Start Date] And
[End Date]))
GROUP BY [Incoming Return Item Detail].DepositingAccount;
I have a query that I am creating to compare volumes to previous day
averages. What I am trying to do is have the query prompt me twice for a
date range. The first prompt will be a specific date and the second will be
a range of days. From those results I want to compare the daily volume to
the average of the range of days I have selected.
Here is what I have now and obviously I am not getting the result I am
looking for. Any ideas? Thanks for your help.
SELECT [Incoming Return Item Detail].DepositingAccount, Count([Incoming
Return Item Detail].ReturnReason) AS CountOfReturnReason,
[CountOfReturnReason] AS Expr1
FROM [RCC Customer List] INNER JOIN [Incoming Return Item Detail] ON [RCC
Customer List].[Account #] = [Incoming Return Item Detail].DepositingAccount
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End
Date]) AND (([Incoming Return Item Detail].Date) Between [Start Date] And
[End Date]))
GROUP BY [Incoming Return Item Detail].DepositingAccount;