Results 1 to 4 of 4
  1. #1
    SMC's Avatar
    SMC is offline Master Ninja
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Columbus, OH
    Posts
    28

    Graph axis adjustment

    I have a graph that is made from a query.

    To make the query I have two date inputs that then filter the query appropriately.

    My graph auto-adjusts the x axis so it is the same size as available data the query produces.
    I want the graph to retain the same x-axs min and max as the date inputs.

    EX:
    6/1/2014 - 8/1/2014
    This could return data with the minimum date being 6/15/2014.
    Since 6/15 is the minimum date, the graph will adjust its axis to 6/15 as the minimum.

    How do I retain 6/1 as the minimum?


    The purpose is to show the absence of data points.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    You might be able to programmatically manage that with code. Depends on the graph type. I have graph (XY Scatter or Line, I forget which one worked) on report and use the Detail section Format event. Excerpt from my db:

    Me.Graph1.Axes(xlCategory).MinimumScale = MinAC
    Me.Graph1.Axes(xlCategory).MaximumScale = MaxAC
    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.

  3. #3
    SMC's Avatar
    SMC is offline Master Ninja
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    Columbus, OH
    Posts
    28
    can "MinAC" be something like, [Forms]![Form_Name]![Textbox] ?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    Yes. MinAC is a variable in my code. Use whatever you want to provide the desired value.
    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. X-axis graph must be sorted by date and time!
    By technesurge in forum Reports
    Replies: 1
    Last Post: 06-29-2012, 01:46 PM
  2. Replies: 6
    Last Post: 02-29-2012, 03:13 AM
  3. Replies: 1
    Last Post: 02-28-2012, 09:16 PM
  4. Replies: 3
    Last Post: 01-10-2011, 10:31 AM
  5. Adjusting the axis of a graph using VBA
    By Sniper-BoOyA- in forum Programming
    Replies: 0
    Last Post: 08-04-2010, 06:41 AM

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