S
Steve in Wisconsin
Hi,
I have a table with stock prices in it. One "Close" price
per day for approximately 1000 days (hence 1000 records).
I have created a query in which I want to display each
days "Close" as well as a calculated value for the average
of the last 20 prior days from each records closing date.
It seems simple enough in concept and I have tried using
the DAVG() function but failed because I couldn't find a
way to reference only the 20 records prior to the current
record.
Any suggestions would be truly appreciated.
Thanks!
I have a table with stock prices in it. One "Close" price
per day for approximately 1000 days (hence 1000 records).
I have created a query in which I want to display each
days "Close" as well as a calculated value for the average
of the last 20 prior days from each records closing date.
It seems simple enough in concept and I have tried using
the DAVG() function but failed because I couldn't find a
way to reference only the 20 records prior to the current
record.
Any suggestions would be truly appreciated.
Thanks!