Hi Allen,
Thanks for your fasstt reponse, I have followed the instruction in
your link, but got unexpected result.
my query is:
TRANSFORM Sum(qdfPMGroupPerDept.Val) AS SumOfVal
SELECT qdfPMGroupPerDept.PayrollID, qdfMSalOTperDept.StartDate,
qdfPMGroupPerDept.AccPeriod, qdfMSalOTperDept.Dept,
qdfMSalOTperDept.BasicSal, qdfMSalOTperDept.OT1, qdfMSalOTperDept.OT2
FROM qdfPMGroupPerDept INNER JOIN qdfMSalOTperDept ON
(qdfPMGroupPerDept.Dept = qdfMSalOTperDept.Dept) AND
(qdfPMGroupPerDept.PayrollID = qdfMSalOTperDept.PayrollID)
GROUP BY qdfPMGroupPerDept.PayrollID, qdfMSalOTperDept.StartDate,
qdfPMGroupPerDept.AccPeriod, qdfMSalOTperDept.Dept,
qdfMSalOTperDept.BasicSal, qdfMSalOTperDept.OT1, qdfMSalOTperDept.OT2
ORDER BY qdfPMGroupPerDept.Extra
PIVOT qdfPMGroupPerDept.Extra In
("Calori","ExtTrans","ExtMilk","Insurance");
without clause IN ...., these columns (Calori etc) got value, but
after adding IN clause, they contain no value.
Is there anything I missed?
Thanks for help
Best Regard
Yanto