Solved

Second x Axis in an Access Graph

Posted on 2006-11-05
5
298 Views
Last Modified: 2012-05-05
Hi,
I have a line graph with two statistics.
Say "Number of Sales" and "Value of Sales".
I can happily code the maximum and minimum scales for the first statistic (Left hand side).
and am using:
Me![Graph0].Object.Application.Chart.axes(2).minimumscale = _
          CDbl(Me.Min1) 'Set the minimum scale
      Me![Graph0].Object.Application.Chart.axes(2).maximumscale = _
          CDbl(Me.Max1) 'Set the maximum scale
But I'm having trouble identifing the second (Right hand side) x axis.
I've tried .axes(3), .axes(4) and .axes(1) and by doing so really messed up the graph.
I got it back again working as before the trail and error testing - actually all error testing.

My question is does anyone know how to reference the second x axis for maximum and minimum scales?
Or where I could go to find out?

Thanks
Danny

Thanks
0
Comment
Question by:quickdan
  • 2
5 Comments
 

Author Comment

by:quickdan
ID: 17878333
Oh, by th way it's called "Secondary Value Axis".
0
 

Author Comment

by:quickdan
ID: 17879261
Well, I've answered my own question

Me![Graph0].Object.Application.Chart.axes(2,2).minimumscale = _
          CDbl(Me.Min1) 'Set the minimum scale
      Me![Graph0].Object.Application.Chart.axes(2,2).maximumscale = _
          CDbl(Me.Max1) 'Set the maximum scale

I guess you can close the ticket.

Danny
0
 
LVL 58

Expert Comment

by:harfang
ID: 17970284
Grats! Well done! Now you can read...

I answered my question myself. What do I do? {http:/help.jsp#hi70}

Cheers!
(°v°)
0
 

Accepted Solution

by:
PashaMod earned 0 total points
ID: 18193303
Closed, 250 points refunded.
PashaMod
Community Support Moderator
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question