Charts

  • Thread starter Thread starter Paradigm
  • Start date Start date
P

Paradigm

I have some data in a table which displays the year, month and a total.
There is not an entry for every month so the table may look like
1999 1 56
1999 2 78
1999 4 89
1999 6 95
1999 7 98

But I want the bottom axis of the chart to show every month. How can I do
this.
Alec
 
Here's a copy of a reply I posted to a similar question about a week ago.
It refers to years, rather than months, but the principle is the same. See
if this helps, and post again if you need more info.

To get all years to display on the graph, you must have them in the
recordset for the graph - ie. in your query. You don't give any details of
what this query is, but here's a couple of suggestions.

If your query is a crosstab, you can force the years into the query by
including an IN clause after the PIVOT clause; something like:
... PIVOT MyYear IN (1997, 1998, 1999, ....)
If you're working in the query design grid, show the query property sheet
and enter the values in the Column Headings field.

If it's not a crosstab query, you'll need to add a year field by some other
method, such as a table (tblYears) containing a single field, YearsToShow,
and populated with the years you want. Add this table to your query, and
join the YearToShow field to your year field (which I'm guessing is a
calculated field from the date value). Click on the join, and select the
option to show all values from tblYears and only those records from your
existing table where the fields are equal. This should give you a recordset
with all years, but only values in the fields to be plotted for those with
data.

HTH,

Rob
 
Back
Top