L
Love Buzz
Hi all.
I have a query that I am trying to prompt the user to key the date range and
the individuals user ID on. The prompting works great and if the user is
just inquiring about one day, everything adds up fine. However, when a date
range is selected, the response is not the desired. Instead of summing up
the date ranges, I am just getting each day within the range with the totals
for that day.
Hope that made sense. Here is the SQL view:
SELECT [December 4].Date, [December 4].UserID, [December 4].Queu, [December
4].Function, Sum([December 4].Items) AS SumOfItems, Sum([December
4].timeinqueu) AS SumOftimeinqueu, Sum([December 4]![timeinqueu]/"60"/60) AS
Expr1, [Queus and SLAs].SLA, [SumOfItems]/[Expr1] AS Expr2, [Expr2]/[SLA] AS
Expr3
FROM ([December 4] INNER JOIN [Returns Associates] ON [December 4].UserID =
[Returns Associates].[User ID]) INNER JOIN [Queus and SLAs] ON ([December
4].Queu = [Queus and SLAs].[Queu Number]) AND ([December 4].Function = [Queus
and SLAs].Function)
GROUP BY [December 4].Date, [December 4].UserID, [December 4].Queu,
[December 4].Function, [Queus and SLAs].SLA
HAVING ((([December 4].Date) Between [StartDate] And [EndDate]) AND
(([December 4].UserID) Like [Enter Employee User ID] & "*"));
Any ideas? Thanks for your help.
I have a query that I am trying to prompt the user to key the date range and
the individuals user ID on. The prompting works great and if the user is
just inquiring about one day, everything adds up fine. However, when a date
range is selected, the response is not the desired. Instead of summing up
the date ranges, I am just getting each day within the range with the totals
for that day.
Hope that made sense. Here is the SQL view:
SELECT [December 4].Date, [December 4].UserID, [December 4].Queu, [December
4].Function, Sum([December 4].Items) AS SumOfItems, Sum([December
4].timeinqueu) AS SumOftimeinqueu, Sum([December 4]![timeinqueu]/"60"/60) AS
Expr1, [Queus and SLAs].SLA, [SumOfItems]/[Expr1] AS Expr2, [Expr2]/[SLA] AS
Expr3
FROM ([December 4] INNER JOIN [Returns Associates] ON [December 4].UserID =
[Returns Associates].[User ID]) INNER JOIN [Queus and SLAs] ON ([December
4].Queu = [Queus and SLAs].[Queu Number]) AND ([December 4].Function = [Queus
and SLAs].Function)
GROUP BY [December 4].Date, [December 4].UserID, [December 4].Queu,
[December 4].Function, [Queus and SLAs].SLA
HAVING ((([December 4].Date) Between [StartDate] And [EndDate]) AND
(([December 4].UserID) Like [Enter Employee User ID] & "*"));
Any ideas? Thanks for your help.