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
Problem with SQL Statment
Time Update not working correctly
SQL query help for an online shop
Find drive letter of a named drive
Installing sample databases on Sql Server 2008
ows Timer service slow down the vertual machine in sharepoint
Please help with Conversion function in sql
SQL server and SQL agent will not start on both nodes in Active to Active SQL 2005 SP3 x64 Enterprise cluster on Windows 2008 x64 after applying KB958644
Exchange 2007 open source backup software/utility
What is the best way to upgrade AD/Exchange Server