Code: Select all
SELECT strUnique as RefNum ,dtmAsOf, curChangeInAllocation AS [Total ITD Allocation]
FROM
(Select strUnique, dtmAsOf ,curChangeInAllocation
from tblCAChangeInAllocation) Chng
PIVOT
(
Sum(curChangeInAllocation)
)as pvt
Code: Select all
TRANSFORM Sum(tblChangeInAllocation.curChangeInAllocation) AS SumOfChangeInAllocation
SELECT tblChangeInAllocation.strUnique, Sum(tblChangeInAllocation.curChangeInAllocation) AS [Total ITD Allocation]
FROM tblChangeInAllocation
GROUP BY tblChangeInAllocation.strUnique
PIVOT tblChangeInAllocation.dtmAsOf;
Any help is GREATLY appreciated.
Respectfully,
Ken