Results 1 to 2 of 2
  1. #1
    SiebeD is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    14

    Change scale Y axis

    Hey there!

    I make a graph but here i display sensor data, and sometimes the data is way of. I was wondering if it is possible to scale the Y axis of a graph in VBA code. Because I run the Query (that has the data for the graph) with vba code.
    Here is de graph that i have and as you can see the range need to be way smaller so that i can't see the wrong data. (the name of hte graph is "GrafiekDebiet")
    Click image for larger version. 

Name:	scala y axis.PNG 
Views:	12 
Size:	26.9 KB 
ID:	44926
    I know that you can just change the properties of the graph but in another form you can change the criteria for the graph. So I want to be able to scale the graph differently when needed in my VBA code.


    Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    If you are using Modern Chart, my understanding is that cannot be managed programmatically. I have done it with classic MSGraph.

    What do you mean by "wrong data"? If data is not desired then why is it produced in query?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Change Report Chart X Axis Order
    By duece7 in forum Access
    Replies: 8
    Last Post: 12-11-2015, 04:32 PM
  2. how to change X axis name
    By naythway in forum Access
    Replies: 1
    Last Post: 10-16-2015, 01:26 PM
  3. Y Axis Scale Problem on XY Scatter Chart
    By Paul H in forum Access
    Replies: 1
    Last Post: 01-15-2013, 06:14 PM
  4. Chart axis change with .Chartype changes
    By alangea in forum Programming
    Replies: 2
    Last Post: 05-20-2012, 12:41 PM
  5. Replies: 1
    Last Post: 02-28-2012, 09:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums