Profound; I hadn't though of that. Here is the SQL for [qryMTD_WandaClass1]:
SELECT tblRVP_Mapping.RVP, tblRVP_Mapping.Director, tblRVP_Mapping.[Sales
Rep], Sum(tblWandaRegion2008.CUR_MTD_REV) AS SumOfCUR_MTD_REV,
Sum(tblWandaRegion2008.OCT) AS SumOfOCT, Sum(tblWandaRegion2008.NOV) AS
SumOfNOV, tblWandaRegion2008.inventoryClass
FROM tblRVP_Mapping INNER JOIN tblWandaRegion2008 ON tblRVP_Mapping.[Sales
Rep] = tblWandaRegion2008.SalesRep
GROUP BY tblRVP_Mapping.RVP, tblRVP_Mapping.Director, tblRVP_Mapping.[Sales
Rep], tblWandaRegion2008.inventoryClass
HAVING (((tblWandaRegion2008.inventoryClass)="Class1"));
I'm simply using an Inner Join line there. I am linking Sales Reps in a
'Mapping' table to Sales Reps in another table with all Reps and sales
figures. I don't think that is the problem. What do you think Karl?
Thanks,
Ryan---
--
RyGuy
KARL DEWEY said:
Here is a guess.
My guess is that [qryMTD_WandaClass1] is a query with two tables that are
not joined therefore creating a cartesian effect.
--
KARL DEWEY
Build a little - Test a little
:
This is one field in my query:
Revenue-Class 1:
Sum(nz([qryMTD_WandaClass1]![SumOfCUR_MTD_REV],0)+nz([qryMTD_WandaClass1]![SumOfOCT],0))
Total: Expression
All I want to do is sum items for sales reps in both: [SumOfCUR_MTD_REV] &
[SumOfOCT]
It is double-counting my revenues, but I am not sure why. Can someone
please explain?
Thanks,
Ryan---