G
Guest
I'm trying to write a criteria but failing miserably.
I have a query with this criteria:
Between [Forms]![frmComplaintQueriesReports]![BeginningDate] And
[Forms]![frmComplaintQueriesReports]![EndingDate]
This is used for a report bar graph. I need this criteria to be displayed as
the last bar (bar furthest to the right) with the preceding 11 months to its
left.
I've come up with this but it's a mess and not at all returning what I want:
WHERE (((qryCompsFacsMonths.DateReceived) Between
[Forms]![frmComplaintQueriesReports]![BeginningDate] And
[Forms]![frmComplaintQueriesReports]![EndingDate]))
GROUP BY Format([DateReceived],"mmm") & "-" &
Format(Year([DateReceived]),"00"), (Format([DateReceived],"mmm-yy")),
Year([DateReceived])*12+Month([DateReceived])-1
ORDER BY (Year([DateReceived])*12+Month([DateReceived])-1);
Any help is greratly appreciated - thanks!
I have a query with this criteria:
Between [Forms]![frmComplaintQueriesReports]![BeginningDate] And
[Forms]![frmComplaintQueriesReports]![EndingDate]
This is used for a report bar graph. I need this criteria to be displayed as
the last bar (bar furthest to the right) with the preceding 11 months to its
left.
I've come up with this but it's a mess and not at all returning what I want:
WHERE (((qryCompsFacsMonths.DateReceived) Between
[Forms]![frmComplaintQueriesReports]![BeginningDate] And
[Forms]![frmComplaintQueriesReports]![EndingDate]))
GROUP BY Format([DateReceived],"mmm") & "-" &
Format(Year([DateReceived]),"00"), (Format([DateReceived],"mmm-yy")),
Year([DateReceived])*12+Month([DateReceived])-1
ORDER BY (Year([DateReceived])*12+Month([DateReceived])-1);
Any help is greratly appreciated - thanks!