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
Remove permissions to create live meeting on OCS 2007 R2
windows server 2008 disable service sac prompt
Merge InfoPath Sections Containing Check Boxes
Only 60Hz Available, Even With Driver, Spec is 75. I Can Work Around That - Should I?
EBS 2008 Server Problem
How to determine why my MFC application requires Microsoft Office dlls to run ??????
How to createa a checkbox datatype column in a table in VBA code
Linq to Sql union with constant values
What is the right way to clone a Windows Server 2003 server, using imaging software?
windows 7 - how to view classic windows explorer