I'm trying to do a series of calculations in an access query.
It's to calculate the % change of stock prices.
For each stock, there are almost 4,000 records. It's the closing price for each day going back to 1999.
Table
Date Symbol Price
11/18/1999 AA 41.17
I'm trying to create the following for Query Record each symbol:
Symbol 5 Day %Change 10 Day %Change 30 Day %Change 60 Day %Change 90 Day %Change 6 Mo %Change 1 Yr %Change 2 Yr %Change 3 Yr %Change 4 Yr %Change 5 Yr %Change etc....
The Query needs to calculate the % change between the most recent Previous Close Price and the preceding 5th record, 10th record, 30th record, 60th record, etc...
I hope I'm explaining correctly.
I can't figure out how to write the following formula:
5DayChange : =([PreviousClose]-[5 Records Back in the Table)/ABS([5 Records Back in the Table)
10DayChange : =([PreviousClose]-[10 Records Back in the Table)/ABS([10 Records Back in the Table)
Or, should I be trying to do this by defining a specific date to use in each calculation?
Thx in advance!