I hope that conveys something of what I want.
I want the output of a date range query to give me all dates (days) in a range, as opposed to only those dates with data. The reason is that I want to output to a spreadsheet (for charting) such that, for, say April, I will have 30 columns, even if only some smaller number of April dates have data.
Right now I'm using a "report generator form" to get my date range:
SELECT [ED Hold Daily Data].AdmitDate, [ED Hold Daily Data].TeamService, [ED Hold Daily Data].HoldTime
FROM [ED Hold Daily Data]
WHERE ((([ED Hold Daily Data].AdmitDate) Between [Forms]![frm ED Hold Report Generator]![cboStartDate] And [Forms]![frm ED Hold Report Generator]![cboEndDate]));
Then I have a cross-tab query working from this:
PARAMETERS Forms![frm ED Hold Report Generator]![cboStartDate] DateTime, Forms![frm ED Hold Report Generator]![cboEndDate] DateTime;
TRANSFORM Count([qry Monthly Hold Time].HoldTime) AS CountOfHoldTime
SELECT [qry Monthly Hold Time].TeamService, Count([qry Monthly Hold Time].HoldTime) AS [Total Of HoldTime]
FROM [qry Monthly Hold Time]
GROUP BY [qry Monthly Hold Time].TeamService
PIVOT Format([AdmitDate],"Short Date");
Thus I want to have (to output to Excel) a spreadsheet showing, for each date in the chosen month, the Total of HOldTime for each TeamSErvice. Perhaps there is some iterative process to get these zero dates?
Tom
I want the output of a date range query to give me all dates (days) in a range, as opposed to only those dates with data. The reason is that I want to output to a spreadsheet (for charting) such that, for, say April, I will have 30 columns, even if only some smaller number of April dates have data.
Right now I'm using a "report generator form" to get my date range:
SELECT [ED Hold Daily Data].AdmitDate, [ED Hold Daily Data].TeamService, [ED Hold Daily Data].HoldTime
FROM [ED Hold Daily Data]
WHERE ((([ED Hold Daily Data].AdmitDate) Between [Forms]![frm ED Hold Report Generator]![cboStartDate] And [Forms]![frm ED Hold Report Generator]![cboEndDate]));
Then I have a cross-tab query working from this:
PARAMETERS Forms![frm ED Hold Report Generator]![cboStartDate] DateTime, Forms![frm ED Hold Report Generator]![cboEndDate] DateTime;
TRANSFORM Count([qry Monthly Hold Time].HoldTime) AS CountOfHoldTime
SELECT [qry Monthly Hold Time].TeamService, Count([qry Monthly Hold Time].HoldTime) AS [Total Of HoldTime]
FROM [qry Monthly Hold Time]
GROUP BY [qry Monthly Hold Time].TeamService
PIVOT Format([AdmitDate],"Short Date");
Thus I want to have (to output to Excel) a spreadsheet showing, for each date in the chosen month, the Total of HOldTime for each TeamSErvice. Perhaps there is some iterative process to get these zero dates?
Tom