In the part query that looks like this:
WADWCStats_cmd.CommandText = "SELECT LEFT(Format(Stats_Date,'mmmm'), 3)+' '+STR(DATEPART('yyyy', Stats_Date)) AS XLABEL, SUM(Minutes) AS YVALUE FROM Stats GROUP BY LEFT(Format(Stats_Date,'mmmm'), 3)+' '+STR(DATEPART('yyyy', Stats_Date)), DATEPART('yyyy', Stats_Date), DATEPART('m', Stats_Date) ORDER BY DATEPART('yyyy', Stats_Date) ASC, DATEPART('m', Stats_Date) ASC "
where could I substract the days if we say the first day of the billing period would be the 5th of a month with 30 days?
Sorry but I can't really identify which part of that code stand for the start date.
Thanks very much