G
Guest
I need to have all records in the categories field show up from
[E].[LEBAEst_Cost... only 42 of the 189 are showing up. There isn't any info
in the q_sumProjPrice
for the other categories so then the info from the E].[LEBAEst_Cost
doesn't show... which then returns the wrong ttls can you tell me where
to put some criteria that will make it return ALL records from the
E].[LEBAEst_Cost. I have tried changing the join but it doesn't change the
result. I need to have criteria that says to return all records in the
table... even if there is no amount in one or the other table under category.
SELECT q_SumProjPrice.CategoryID, q_SumProjPrice.CategoryName,
q_SumProjPrice.ProjectID, q_SumProjPrice.MainCatID,
q_SumProjPrice.MainCatName, E.LEBAEst_Cost,
q_SumProjPrice.SumOfExtendedPrice,
Sum([E].[LEBAEst_Cost]-[q_SumProjPrice].[SumOfExtendedPrice]) AS
DiffEstimatedAndExtendedPrices
FROM [EST_S-84a] AS E LEFT JOIN q_SumProjPrice ON E.Category =
q_SumProjPrice.CategoryID
WHERE (((q_SumProjPrice.ProjectID) Like [What Project ID? Ex:LEBA] &
"*"))
GROUP BY q_SumProjPrice.CategoryID, q_SumProjPrice.CategoryName,
q_SumProjPrice.ProjectID, q_SumProjPrice.MainCatID,
q_SumProjPrice.MainCatName, E.LEBAEst_Cost,
q_SumProjPrice.SumOfExtendedPrice;
Thanks!!
[E].[LEBAEst_Cost... only 42 of the 189 are showing up. There isn't any info
in the q_sumProjPrice
for the other categories so then the info from the E].[LEBAEst_Cost
doesn't show... which then returns the wrong ttls can you tell me where
to put some criteria that will make it return ALL records from the
E].[LEBAEst_Cost. I have tried changing the join but it doesn't change the
result. I need to have criteria that says to return all records in the
table... even if there is no amount in one or the other table under category.
SELECT q_SumProjPrice.CategoryID, q_SumProjPrice.CategoryName,
q_SumProjPrice.ProjectID, q_SumProjPrice.MainCatID,
q_SumProjPrice.MainCatName, E.LEBAEst_Cost,
q_SumProjPrice.SumOfExtendedPrice,
Sum([E].[LEBAEst_Cost]-[q_SumProjPrice].[SumOfExtendedPrice]) AS
DiffEstimatedAndExtendedPrices
FROM [EST_S-84a] AS E LEFT JOIN q_SumProjPrice ON E.Category =
q_SumProjPrice.CategoryID
WHERE (((q_SumProjPrice.ProjectID) Like [What Project ID? Ex:LEBA] &
"*"))
GROUP BY q_SumProjPrice.CategoryID, q_SumProjPrice.CategoryName,
q_SumProjPrice.ProjectID, q_SumProjPrice.MainCatID,
q_SumProjPrice.MainCatName, E.LEBAEst_Cost,
q_SumProjPrice.SumOfExtendedPrice;
Thanks!!