Hey everyone,
What I have is 2 tables one with data, and one with fiscal year periods that go up to the year 2020.
and a query which I am trying to pull the data into.
[Data_table] is set up as
Test Date PorF Test1 5/10/2015 P Test2 8/6/2015 F
[Fiscal_Year_table]
Fiscal/PP PPStart PPEnd 15/01 5/1/2015 5/14/2015 15/02 8/1/2015 8/14/2015
Now I have a query off Data table which includes all 3 fields and a 4th field
With the 4th field I would like for it to look at the date then look at [Fiscal_Year_table] and if the date field falls between ppstart and ppend then show fiscal/pp for 4th field
Which if done right would look like below
[Query_combined]
Test Date PorF Fiscal/PP Test1 5/10/2015 P 15/01 Test2 8/6/2015 F 15/02
I am guessing it needs an iif statement? but I am not positive.
if it would make it easier I can combine the ppstart and ppend show it would should one field as 5/1/2015-5/14/2015 so it only looks at one fields rather then 2?
Thank you for your time and help.