Link to home
Start Free TrialLog in
Avatar of Mach1pro
Mach1pro

asked on

Graph not showing first X value

I have a simple LIne graph. Here is the source sql:
SELECT [1999CS] AS [1999], [2000CS] AS [2000], [2001CS] AS [2001], [2002CS] AS [2002], [2003CS] AS [2003], [2004CS] AS [2004], [2005CS] AS [2005] FROM tblMembers

No matter what I do, I can't get the graph to display the 1999 field. Yes, there is data in the field. Any ideas?
Avatar of nico5038
nico5038
Flag of Netherlands image

Hmm, Access sometimes acts wierd on numeric fieldnames, did you try e.g.:
SELECT [1999CS] AS [A1999], [2000CS] AS [A2000], etc. ?

Nic;o)
Avatar of Mach1pro
Mach1pro

ASKER

That didn't work, but what is weird is that I can reverse the field positions and what ever field I select first is the one that isn't displayed.
Hmm, then the workaround is easy:
select "X" as Dummy, [1999CS] AS [1999], [2000CS] AS [2000], etc.

What's the interval you're using for the X-axes ?

Nic;o)
Did you check your Min/Max value on your Z Axis? It might be disallowing it based on the value.
J
Also...does your Graph have a ledgend? Does the value show up there?
J
When I added a legend, the value of the field showed up to the left of the Y axis, but the label name itself did not show up.
Did you try adding the dummy like Nico suggested?
Another thought, and I guess this could be reaching...either the line for that value is formatted to not display? or is the same color as the background of the chart. Another thought is that the plot is actually ON the Z axis?. Try stretching your graph out left to right and see if that exposes some...and like Nico suggested, check the interval on your X axis...add a count if needs be.
Can you upload a zipped (part of) the .mdb with the troubling graph to www.ee-stuff.com and post the link here so we can have a look ?

Nic;o)
Here's a link to the report and table:

http://www.melandreba.com/rpt.mdb
When I took your select statement as the source of the report and created a query out of it and ran it...it returned 0 1999 records.
J
It did however return the value as ABC...which becomes the rise value for your X axis.
If I bring down the field called clients served to become your X axis, your ABC field appears along the bottom where it's supposed to be.
You're missing an output on your query for your X axis.
J
ASKER CERTIFIED SOLUTION
Avatar of jefftwilley
jefftwilley
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Basically your tabledesign is wrong and should show the years in separate rows.
You'll be limited now in the number of columns to be displayed as they are seen as different "labels"....
Best would be to have a table with:
ID
Year
CSvalue
CMvalue
That's to be used then "dynamically" to fill the different years.

Nic;o)