Hello,
I have table, called Inflation, that has a record for every "base year". Within each record is a column that contains the inflation rate index for every year between 1970 and 2030 (field names are Inflation.Y1970 through Inflation.Y2030) as a function of that base year. This table is linked to TableA using base year as the key. Several values need to be adjusted for inflation. The problem is that many are in different "then year" values (but all have the same base year). So I need to get different inflation rates depending on the Then Year.
Suppose that the field, TableA.ThenYear is 2013. I built an expression, RateField, in my query that returns "[Inflation]![Y2013]". The expression RateField returns the name of the field that I need to pull data from. Is there a calculation function that will convert the text "[Inflation]![Y2013]" into a field? Aka how would I build the expression, TYrate, such that it used RateField to return the 2014 inflation rate and not the text sting?
I've used this sort of trick a lot in other software and am hopeing it is possible in Access.
THanks