Share via

Access Graph Help - Moving Date

Anonymous
2013-08-14T22:43:38+00:00

I would like to have a time graph where the beginning date would automatically change everyday. The graph would be for a time period of 5 years with the beginning date on the left and ending date on the right, all along the x-axis. In other words, the dates on the 5-year graph would be automatically updated every day. How can this be done?

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

13 answers

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2013-08-16T13:49:09+00:00

    OK, thanks, I had indeed misinterpreted your request. Try this in the Criteria row:

    Between Date() And DateAdd("yyyy",5,Date())

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2013-08-16T13:20:40+00:00

    Hans:

    The starting date should be the current date (today's date) and the ending date should be 5 years out. As example, if one opened the graph today, the starting date would be 8/16/2013 and the ending date would be 8/16/2018.  When the chart is opened tomorrow, the starting date would be 8/17/2013 and the ending date would be 8/17/2018.

    Does that help? 

    Thanks,

    Bill

    Was this answer helpful?

    0 comments No comments
  3. HansV 462.6K Reputation points
    2013-08-16T10:03:37+00:00

    Apparently I have misunderstood your question. What do you want to be the starting data and what should be the ending date?

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2013-08-15T23:53:25+00:00

    Hans:

    I followed exactly what you indicated in the date/time field in the Criteria row with no quotation marks other than what you had shown. 

    I also entered the query in the Row Source of the chart.

    The chart did not start at today's date and the total time frame was not 5 years. The chart did not change from what I originally had which started 1/1/2011 and was 8 years in length.

    Any other suggestions?

    Thank you

    Bill

    Was this answer helpful?

    0 comments No comments
  5. HansV 462.6K Reputation points
    2013-08-15T05:51:50+00:00

    Create a query based on your data, with the following condition in the Criteria row of the relevant date/time field:

    >=DateAdd("yyyy",-5,Date())

    Use this query as Row Source for your chart.

    Was this answer helpful?

    0 comments No comments