Hi,
I'm basically looking for an angle to attack this from - not an immediate solution.
This is a greatly simplified example of my problem, but believe that a solution to this will give me a solution to the complicated version.
Table: table1
date_field
status_field
The status_field can be:
Early
OnTime
Late
Outstanding
(Status is basically the delivery status of an order).
A parameter query gets an 'end-month' from user, which stipulates the end-month of a 12 month period required. The query feeds a chart.
The chart MUST display a 12 column datagrid even if there are no orders for a particular month.
Each vertical bar on the chart MUST be aligned with the related datagrid column.
The query retrieves all records for the previous 12 months from the month entered by the user, but, say - Feb doesn't have an order; only 11 bars will be displayed (as expected, but no gap between Jan and Mar AND the datagrid only displays 11 columns - expanded to fill the space of 12. This is not what is required.
I want (in this scenario) 11 bars with one space for Feb, and the datagrid displaying 12 columns with no data (or zeros) where the Feb column should be.
Each column on the chart has a label: month/year. This is not key in the solution, the displaying of the 'empty' period is.
I'm pretty well resigned to the fact that the query that took me months to finesse to this point will have to be discarded, and that the solution resides in the first query that 'feeds' the rest (in the complicated version).
Any / all help appreciated.
3 stars guaranteed for this. I have thoroughly searched the 'Net and of course Tek-Tips - the solution has avoided me for many 'man-week-hours'.
Make my year please.
ATB
Darrylle
Never argue with an idiot, he'll bring you down to his level - then beat you with experience.
I'm basically looking for an angle to attack this from - not an immediate solution.
This is a greatly simplified example of my problem, but believe that a solution to this will give me a solution to the complicated version.
Table: table1
date_field
status_field
The status_field can be:
Early
OnTime
Late
Outstanding
(Status is basically the delivery status of an order).
A parameter query gets an 'end-month' from user, which stipulates the end-month of a 12 month period required. The query feeds a chart.
The chart MUST display a 12 column datagrid even if there are no orders for a particular month.
Each vertical bar on the chart MUST be aligned with the related datagrid column.
The query retrieves all records for the previous 12 months from the month entered by the user, but, say - Feb doesn't have an order; only 11 bars will be displayed (as expected, but no gap between Jan and Mar AND the datagrid only displays 11 columns - expanded to fill the space of 12. This is not what is required.
I want (in this scenario) 11 bars with one space for Feb, and the datagrid displaying 12 columns with no data (or zeros) where the Feb column should be.
Each column on the chart has a label: month/year. This is not key in the solution, the displaying of the 'empty' period is.
I'm pretty well resigned to the fact that the query that took me months to finesse to this point will have to be discarded, and that the solution resides in the first query that 'feeds' the rest (in the complicated version).
Any / all help appreciated.
3 stars guaranteed for this. I have thoroughly searched the 'Net and of course Tek-Tips - the solution has avoided me for many 'man-week-hours'.
Make my year please.
ATB
Darrylle
Never argue with an idiot, he'll bring you down to his level - then beat you with experience.