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
Which permission I should give to an mssql user to be able to request the Query notifications?
Web Browsers crash XP
Autonumbering in SharePoint 2007?
Visual Studio creates an error in my rc file every time I change a menu
OL 2003 - My macro causes "this outlook session contains macros" warning
Web Parts Manager
Query over multiple fields
restricting microsoft outlook users to send maximum mails to users that belong to Global Address List
The BEST Way to Dual Boot & Ultility to Help with Registry Entries
RAID 1 or RAID 10 for windows 2003 server with SQL 2000 server