Hey DHookom,
I get your point about deleted records. In this case, I just imported this stock data so the Rank and the ID fields are identical.
My query on the table
SELECT ID, close, (SELECT(sum(close) from VIX_DailyHist where ID BETWEEN b.ID and b.ID-4)/ iif(ID > 5, 5, ID) AS VIXSMA5
FROM...