Hi. I have a bar chart on a report which displays data from the below query. As you can see this query has 3 columns: Station, OutToDate, WeekOf.
The chart displays Stations and their representative WeekOf as columns across the X-Axis. OutToDate is represented on the Y-Axis.
Is it possible to move the WeekOf field to the Y-Axis, so that the Y-Axis increments weekly, just as the data does in the query? When I open the Y-Axis properties, I can't seem to find where I can assign this field to the Y-Axis, as Access seems to want to format the chart automatically for me.
Thanks for any assistance.
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.
The chart displays Stations and their representative WeekOf as columns across the X-Axis. OutToDate is represented on the Y-Axis.
Is it possible to move the WeekOf field to the Y-Axis, so that the Y-Axis increments weekly, just as the data does in the query? When I open the Y-Axis properties, I can't seem to find where I can assign this field to the Y-Axis, as Access seems to want to format the chart automatically for me.
Code:
SELECT qryProductionDaysOut.Station, qryProductionDaysOut.OutToDate, IIf(Weekday(qryProductionDaysOut.OutToDate)=1,Format(qryProductionDaysOut.OutToDate, "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=2,Format(DateAdd("d", -1, [qryProductionDaysOut.OutToDate]), "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=3,Format(DateAdd("d", -2, [qryProductionDaysOut.OutToDate]), "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=4,Format(DateAdd("d", -3, [qryProductionDaysOut.OutToDate]), "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=5,Format(DateAdd("d", -4, [qryProductionDaysOut.OutToDate]), "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=6,Format(DateAdd("d", -5, [qryProductionDaysOut.OutToDate]), "Short Date"),
IIF(Weekday(qryProductionDaysOut.OutToDate)=7,Format(DateAdd("d", -6, [qryProductionDaysOut.OutToDate]), "Short Date"),
))))))) AS WeekOf
FROM qryProductionDaysOut
GROUP BY qryProductionDaysOut.Station, qryProductionDaysOut.OutToDate, qryProductionDaysOut.Priority
ORDER BY qryProductionDaysOut.Priority;
Thanks for any assistance.
--
Not until I became a Network Administrator did the error message "See your Network Administrator for assistance" become petrifying.