Ok. I am working with a select queury and all I am trying to do is sum two
numbers in a column together that share the same 'queue'.
For some reason it's adding the two numbers and then multiplying by 17 for
every 'group'.
Any ideas? Thanks for your help.
Almost certainly because you're retrieving each record 17 times, because one
of your joined tables in the query has 17 records:
SELECT [December 4].Date, [December 4].UserID, [December 4].Function,
[December 4].Queu, Sum([December 4].Items) AS SumOfItems
FROM ([December 4] INNER JOIN [Returns Associates] ON [December 4].UserID =
[Returns Associates].[User ID]) INNER JOIN [Queus and SLAs] ON [December
4].Function = [Queus and SLAs].Function
GROUP BY [December 4].Date, [December 4].UserID, [December 4].Function,
[December 4].Queu;
If there are multiple records in [Returns Associates] or [Queus and SLAs] for
each value of UserID or of Function respectively, you'll see each record in
the (horribly badly named) [December 4] table repeated that many times. That's
how queries are designed to work.