A family of Microsoft relational database management systems designed for ease of use.
OK, thanks, I had indeed misinterpreted your request. Try this in the Criteria row:
Between Date() And DateAdd("yyyy",5,Date())
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
A family of Microsoft relational database management systems designed for ease of use.
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.
OK, thanks, I had indeed misinterpreted your request. Try this in the Criteria row:
Between Date() And DateAdd("yyyy",5,Date())
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
Apparently I have misunderstood your question. What do you want to be the starting data and what should be the ending date?
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
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.