I have two cross tab queries.
qry_PayCrostab which sums the wages
TRANSFORM Sum(Tbl_FTEallocation.Wages) AS SumOfWages
SELECT tbl_Dept.DpName
FROM tbl_Revenue INNER JOIN (tbl_Dept INNER JOIN Tbl_FTEallocation ON tbl_Dept.DPID = Tbl_FTEallocation.Dpid) ON tbl_Revenue.revnum = Tbl_FTEallocation.RevNum
GROUP BY tbl_Dept.DpName
ORDER BY tbl_Dept.DpName, tbl_Revenue.rvname
PIVOT tbl_Revenue.rvname;
and qry_BudTx which sums the budget total
TRANSFORM Sum(BudTx.BudTxAmt) AS BudTxAmtOfSum
SELECT tbl_Dept.DpName
FROM tbl_Dept INNER JOIN (tbl_Revenue INNER JOIN BudTx ON tbl_Revenue.revnum = BudTx.Revnum) ON tbl_Dept.DPID = BudTx.Dpid
GROUP BY tbl_Dept.DpName
ORDER BY tbl_Revenue.rvname
PIVOT tbl_Revenue.rvname;
Now i would like to make another "cross tab query"
that has same row heading and columns but where value = the sum of 'BudTxAmtOfSum' + 'SumOfWages'
so same looking crosstabl query which will capture the total of other 2 queries. Is this possible or do i need to make another table???
qry_PayCrostab which sums the wages
TRANSFORM Sum(Tbl_FTEallocation.Wages) AS SumOfWages
SELECT tbl_Dept.DpName
FROM tbl_Revenue INNER JOIN (tbl_Dept INNER JOIN Tbl_FTEallocation ON tbl_Dept.DPID = Tbl_FTEallocation.Dpid) ON tbl_Revenue.revnum = Tbl_FTEallocation.RevNum
GROUP BY tbl_Dept.DpName
ORDER BY tbl_Dept.DpName, tbl_Revenue.rvname
PIVOT tbl_Revenue.rvname;
and qry_BudTx which sums the budget total
TRANSFORM Sum(BudTx.BudTxAmt) AS BudTxAmtOfSum
SELECT tbl_Dept.DpName
FROM tbl_Dept INNER JOIN (tbl_Revenue INNER JOIN BudTx ON tbl_Revenue.revnum = BudTx.Revnum) ON tbl_Dept.DPID = BudTx.Dpid
GROUP BY tbl_Dept.DpName
ORDER BY tbl_Revenue.rvname
PIVOT tbl_Revenue.rvname;
Now i would like to make another "cross tab query"
that has same row heading and columns but where value = the sum of 'BudTxAmtOfSum' + 'SumOfWages'
so same looking crosstabl query which will capture the total of other 2 queries. Is this possible or do i need to make another table???