K
KiowaPilot
I am trying to create a Query to feed a Chart in Access. With the following
data in table "Rawdata" [Flt_Date] [HRS]
I have Daily activites narrowed down to monthly totals with the following
SQL. producing "Query1":
2009 - 1 - 12.5
2009 - 2 - 18.2
2009 - 3 - 14.6
I would now like to have a column that creates a running total specifically
for the chart.
2009 - 1 - 12.5 - 12.5
2009 - 2 - 18.2 - 30.7
2009 - 3 - 14.6 - 45.3
SELECT DatePart("yyyy",[Flt_Date]) AS AYear, DatePart("m",[Flt_Date]) AS
AMonth, Sum(Rawdata.HRS) AS SumOfHRS
FROM Rawdata
GROUP BY DatePart("yyyy",[Flt_Date]), DatePart("m",[Flt_Date])
ORDER BY DatePart("yyyy",[Flt_Date]);
data in table "Rawdata" [Flt_Date] [HRS]
I have Daily activites narrowed down to monthly totals with the following
SQL. producing "Query1":
2009 - 1 - 12.5
2009 - 2 - 18.2
2009 - 3 - 14.6
I would now like to have a column that creates a running total specifically
for the chart.
2009 - 1 - 12.5 - 12.5
2009 - 2 - 18.2 - 30.7
2009 - 3 - 14.6 - 45.3
SELECT DatePart("yyyy",[Flt_Date]) AS AYear, DatePart("m",[Flt_Date]) AS
AMonth, Sum(Rawdata.HRS) AS SumOfHRS
FROM Rawdata
GROUP BY DatePart("yyyy",[Flt_Date]), DatePart("m",[Flt_Date])
ORDER BY DatePart("yyyy",[Flt_Date]);