ACC2000: How to Compute Moving Averages in Visual Basic for Applications (210138)
The information in this article applies to:
This article was previously published under Q210138 Advanced: Requires expert coding, interoperability, and multiuser skills.
This article applies only to a Microsoft Access database (.mdb).
SUMMARY
This article describes how to create a sample Visual Basic for Applications
function to compute a moving average for a set of values in a table
based on a specified period of time. For example, if you have data that has been collected weekly for the past year, and you want to compute a
historical average for a three-week time period on each value, you can use
this function to return an average for each value in the table that is based on the
current value and the values from the two previous weeks.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbinfo kbProgramming KB210138 |
---|
|