Hi
I have two tables
-
- Transactions - with a date
-
- Periods of time - with a Title, Start date and End date. ie “Year 1” runs from 1st April 2019 to 31st May 2020, “Year 2” runs from 1st June 2020 to 31st May 2021.
I’d like to have a field in the transactions table, which looks up from the periods of time table, which year a transaction took place. So if the transaction was on the 1st July 2020, it would be in the Year 2 fiscal period. If it took place on the 1st May 2019, it was in the Year 1 fiscal period.
I know I could write that with a long IF statement, but that is cumbersome!
If my fiscal periods were whole years, (ie 1st Jan to 31st Dec) it would be so easy!
Any ideas or suggestions very welcome.
Thanks,
Andrew
