D
dwaynesworld
I have created a query which sums up data from 3 separate queries. For one
record in the query, it seems to multiply the totals for 2 values within the
results, thus getting a sum that is way bigger that what it is supposed to
be. Here is my query:
SELECT qryAdjustedTechSkillsGrandTotals.[Course Name],
qryAdjustedTechSkillsGrandTotals.[SumOfTotal Participants] AS [Total
Participants], qryAdjustedTechSkillsGrandTotals.[SumOfFacilitator Hours] AS
[Facilitator Hrs], qryAdjustedTechSkillsGrandTotals.[SumOfPrep/Wrap Hours] AS
[Prep/Wrap Hrs], Sum(Nz([Total ISD Hours],0)) AS [Total ISD Hrs],
Sum(Nz([Total Admin Hours],0)) AS [Total Admin Hrs],
qryAdjustedTechSkillsGrandTotals.[SumOfCourse Count] AS [TS Course Cnt]
FROM (qryAdjustedTechSkillsGrandTotals LEFT JOIN qryISDData ON
qryAdjustedTechSkillsGrandTotals.[Course Name] = qryISDData.[Project Name])
LEFT JOIN qryAdminData ON qryAdjustedTechSkillsGrandTotals.[Course Name] =
qryAdminData.[Course Name]
GROUP BY qryAdjustedTechSkillsGrandTotals.[Course Name],
qryAdjustedTechSkillsGrandTotals.[SumOfTotal Participants],
qryAdjustedTechSkillsGrandTotals.[SumOfFacilitator Hours],
qryAdjustedTechSkillsGrandTotals.[SumOfPrep/Wrap Hours],
qryAdjustedTechSkillsGrandTotals.[SumOfCourse Count];
Any help will be greatly appreciated!!!
record in the query, it seems to multiply the totals for 2 values within the
results, thus getting a sum that is way bigger that what it is supposed to
be. Here is my query:
SELECT qryAdjustedTechSkillsGrandTotals.[Course Name],
qryAdjustedTechSkillsGrandTotals.[SumOfTotal Participants] AS [Total
Participants], qryAdjustedTechSkillsGrandTotals.[SumOfFacilitator Hours] AS
[Facilitator Hrs], qryAdjustedTechSkillsGrandTotals.[SumOfPrep/Wrap Hours] AS
[Prep/Wrap Hrs], Sum(Nz([Total ISD Hours],0)) AS [Total ISD Hrs],
Sum(Nz([Total Admin Hours],0)) AS [Total Admin Hrs],
qryAdjustedTechSkillsGrandTotals.[SumOfCourse Count] AS [TS Course Cnt]
FROM (qryAdjustedTechSkillsGrandTotals LEFT JOIN qryISDData ON
qryAdjustedTechSkillsGrandTotals.[Course Name] = qryISDData.[Project Name])
LEFT JOIN qryAdminData ON qryAdjustedTechSkillsGrandTotals.[Course Name] =
qryAdminData.[Course Name]
GROUP BY qryAdjustedTechSkillsGrandTotals.[Course Name],
qryAdjustedTechSkillsGrandTotals.[SumOfTotal Participants],
qryAdjustedTechSkillsGrandTotals.[SumOfFacilitator Hours],
qryAdjustedTechSkillsGrandTotals.[SumOfPrep/Wrap Hours],
qryAdjustedTechSkillsGrandTotals.[SumOfCourse Count];
Any help will be greatly appreciated!!!