L
Leslie W.
I have written the following SQL Statement:
TRANSFORM Sum(qryTSExportFY.Hours) AS SumOfHours
SELECT qryTSExportFY.ProjNum, qryTSExportFY.ProjSub1,
qryTSExportFY.ProjSub2, qryTSExportFY.LastName, Sum(qryTSExportFY.Hours) AS
TotalHours
FROM qryTSExportFY
GROUP BY qryTSExportFY.ProjNum, qryTSExportFY.ProjSub1,
qryTSExportFY.ProjSub2, qryTSExportFY.LastName
PIVOT qryTSExportFY.FiscalYear In ("FY05", "FY06", "July 2006", "August
2006", "September 2006", "October 2006", "November 2006", "December 2006",
"January 2007", "February 2007", "March 2007", "April 2007", "May 2007",
"June 2007");
My problem is that Access will create all of the columns, however, they are
not populated with the data from the pivot table. A SumofHours Column was
created, but the hours do not distribute. Any ideas where I went wrong?
Thanks for your help!
TRANSFORM Sum(qryTSExportFY.Hours) AS SumOfHours
SELECT qryTSExportFY.ProjNum, qryTSExportFY.ProjSub1,
qryTSExportFY.ProjSub2, qryTSExportFY.LastName, Sum(qryTSExportFY.Hours) AS
TotalHours
FROM qryTSExportFY
GROUP BY qryTSExportFY.ProjNum, qryTSExportFY.ProjSub1,
qryTSExportFY.ProjSub2, qryTSExportFY.LastName
PIVOT qryTSExportFY.FiscalYear In ("FY05", "FY06", "July 2006", "August
2006", "September 2006", "October 2006", "November 2006", "December 2006",
"January 2007", "February 2007", "March 2007", "April 2007", "May 2007",
"June 2007");
My problem is that Access will create all of the columns, however, they are
not populated with the data from the pivot table. A SumofHours Column was
created, but the hours do not distribute. Any ideas where I went wrong?
Thanks for your help!