Hi there!
I have an update query that is updating the values in a field based on an inner join. The output of which looks something like this:
Table Name.Field = VBF Source.Date
(THE DATE FIELD IS A TEXT FORMATTED FIELD)
DATE
2/1/2015 5/1/2015 8/1/2015 11/1/2015 2/1/2016
Based on this updated field I need a formula for another update query, preferrably the same update query that does the following:
Table Name.Field = VBF Source.CurrentPeriod
IF VBF Source.date = MAX value (ie most recent date) then "T" ELSE "F" END IF
Table Name.Field = VBF Source.PreviousPeriod
If the value is exactly one year before the maxvalue then "T" else "F" END IF
Final Result is below.
Date CurrentPeriod PreviousPeriod 2/1/2015 F T 5/1/2015 F F 8/1/2015 F F 11/1/2015 F F 2/1/2016 T F
Thank you very kindly!