Dear Forum
I have a union query (QryProjectCost)that assembles three fields from three different tables:
SELECT Projectnumber,CostType, Amount
FROM TblLaborCost
UNION ALL
SELECT Projectnumber,CostType, Amount
FROM TblMiscCost
UNION ALL
SELECT Projectnumber,CostType, Amount
FROM TblShippingCost
However, I need to setup two additional calculated fields in the Union Query to render the total cost per project and another to render the percentage of each cost record relative to its total project cost.
I believe the DSUM() AS ProjectTotalCost may be appropriate here for total cost, but need help in preparing it.
How do I add these two new fields into the SQL statement without crashing the query?
Thanks !