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
How do I execute a module in Access 2007
Web Projects
C#: Alternative to Modal window
Click event overrides DblClick event
Need SQL Syntax help to make my qry more efficient.
ODBC works on PC but not Terminal Server
Loading images from directory into 5 Pictureboxes HOW?
Can't find Outlook contacts folder
MS Office Picture Manager doesn't open images attached to emails
How to link a signature image to a web page in Outlook 6 signature