Results 1 to 6 of 6
  1. #1
    amcalabrese is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2011
    Posts
    6

    Graphing a value between two dates

    Reference the attached picture, how do I set up a graph to plot the "spread" values between and including the two dates?



    I'm trying to draw a stacked area chart for the "spread" values between EAD and LAD. It seems easy enough in theory, but I'm having a hell of a time trying to do this.

    Also, I'd like to keep it in a query, because while the example shows only 6 records, my database at work has over 7,000 records.

    Any help would be appreciated.

  2. #2
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    I'm having a hard time visualizing your requirement. Excel is an easier method to get started on a graph. Can you create a graph in Excel that looks the way you want? Then we can try to duplicate it in Access.

  3. #3
    amcalabrese is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2011
    Posts
    6
    Ok, so I used Excel to graph out what I am trying to accomplish with Access. It's called a Sand Chart. It's pretty basic in Excel. But the format is much different in how the data is stored in access. I think the way ahead is to have a query calculate an array, and then graph the results. Two problems with this... 1) I don't know how to get access to create an array as the result of a query, and 2) I have not idea how to graph an array. What are your thoughts?

  4. #4
    kennejd is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    188
    That looks like a basic crosstab. If you create a form and add a chart control, you can follow the wizard to create a chart. Access will build the crosstab query for you based on your inputs....might take a few tries to get it to look ok.

  5. #5
    amcalabrese is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2011
    Posts
    6
    I've been thinking about it for some time now, and I think I have a way ahead, though input is always welcome.

    I think if I write some VBA code on the form load event, I might be able to get it to do what I want. Esentially, I know my starting place will be [EAD], with a value of [STON Spread]. I must then create a do-loop to create multiple columns with the same value of [STON Spread] until I reach [LAD], or my end date. I think this would be a dynamic query.

    Thoughts?

  6. #6
    Poolio is offline Novice
    Windows XP Access 2003
    Join Date
    Apr 2011
    Location
    Stockport
    Posts
    5
    Hi there...

    Re:
    Quote Originally Posted by amcalabrese View Post
    I think I have a way ahead...
    What is this way ahead of which yuo speak??!

    I am trying to compile a similar thing (I think)...

    I have projects which run from StaDate to EndDate, which have an equal spread of values across those dates, which I want to present in a Stacked / Sand(?) chart.

    Any chance you can embelish on what you did to solve your problem

    Quote Originally Posted by amcalabrese View Post
    ...write some VBA code on the form load event.... create a do-loop to create multiple columns with the same value ... until I reach my end date. I think this would be a dynamic query....
    This sounds well beyond my Newbie knowledge... I can make it all work in Excel!

    Cheers
    Poo

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

Similar Threads

  1. display all dates between two dates
    By KenThompson in forum Access
    Replies: 8
    Last Post: 02-23-2011, 01:11 PM
  2. Pie Graphing problem
    By newtoAccess in forum Reports
    Replies: 6
    Last Post: 12-13-2010, 09:36 AM
  3. Mixed dates - show only complete dates?
    By weeblesue in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:15 PM
  4. Replies: 0
    Last Post: 07-22-2010, 07:43 AM
  5. Due dates
    By Mehbastan in forum Queries
    Replies: 5
    Last Post: 08-14-2009, 08:37 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