Microsoft
Software
Hardware
Network
Question : MS Access calculate rolling 12 month average
In an Access query how do I calculate a rolling 12 month average for a field that contains numerical data such as 1, 2, 3. The fields are Date (month/year), number of injuries, and the 3rd column will contain a rolling 12 month average for the past 12 months.
Answer : MS Access calculate rolling 12 month average
Use a criterium like:
where [YourDateField] between DateAdd("yyyy", -1, Date()) and Date()
If [YourDateField] is not of data type Date you will have to convert it to a valid date value using DateValue or DateSerial.
/gustav
Random Solutions
"You don't have the license required to use this Active X Control"
Remove leading zeros
sql server 2008 Express
how to export datatable to Excel using Save dialog in VB.NET
Width animation of grid
Exchange 2010 Entourage
Remove all other data and leave just the data in the txt file. Need to delete the colums where data match in row 1.
Printing from Terminal-Like App
No picture, just sound on xbox 360
When are Access records actually deleted from table?