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
.txt File comparison
vb.net - save data from listview
Open Sharepoint server's pdf file in asp.net...
VB PowerPack in C#
Error message from SQL Server 2005 appearing in SQL Server 2008
Tree Node Font or graphics change On Mouse HOver
RS-485 Serial Communications
Looking for a way to edit our Global Address list in 2003 server AD
SCCM not finding computers to push client to
Error Code 429