Re: Joining the lines in a Line Chart with Null data

Tech-Archive recommends: Fix windows errors by optimizing your registry



Evi wrote:

My Line chart shows Fuel usage by over several years.
The grid across the bottom (x axis) shows the month numbers The grid up the
left side shows the amount spent. Each line on the chart represents a
different year.

In November 2006 no fuel was purchased.
Instead of the line being joined from October 06 to December 06 (as one
would in a hand-drawn graph) there is a break in the line.
I can force all 12 month numbers to appear in the Row Headers of the
crosstab query on which the Row Source of the Chart is based by using a left
join with a query containing 2 other queries, one showing all the potential
months 1 to 12 and the other showing all the years in the database. but this
doesn't help because the Values are null


You should force all the months to be present. You can use
IIf or the Nz function to convert Null to 0 so the rest of
the processing has a valid value.

It is not necessary to use a Left Join to get all 12 months.
Instead you can just list the month numbers in the crosstab
query's Column Headings property.

--
Marsh
MVP [MS Access]
.



Relevant Pages

  • Assigning Crosstab Query Headers to Control Source(s)?
    ... I have a crosstab query that is working great showing the data that is needed. ... I have 3 row headers which are static. ... My question is how do I assign my changing Column Headers (from the crosstab ...
    (microsoft.public.access.formscoding)
  • Re: Import text to editbox from file
    ... > it is better to work with the htm file It doesn't matter, ... There are 2 basic choices for showing the information, grid and form. ... information about a single record. ...
    (alt.comp.lang.borland-delphi)
  • Re: How to detect if Scroll Bars are visible on a Datagrid Control
    ... is if you need to refresh the grid after changing ... ' Vertical scroll bar must be showing. ... ' which assures that there is no horizontal scroll bar showing. ...
    (microsoft.public.vb.controls)
  • Re: GRID COLUMN ...
    ... I had to use this code to remove the first column in a grid in VFP 6.0 SP5: ... Purchase VFP8 here: ... > then Header is not showing. ...
    (microsoft.public.fox.helpwanted)
  • Re: DataGridView
    ... Create a DataTable whatever the columns u want to display in the Grid + with ... > this is my first time playing with the DataGridView control. ... > I would like to have the row headers numbered. ...
    (microsoft.public.dotnet.languages.csharp)