I just can't seem to find the answer that should be fairly easy. I have a date in one Production table and I need to find out which period it falls in from my Accounting period table. An example from the production table would be 2/23/2017 and I need to select the proper period from the following:
ActgIndx startperiod end period
1 12/26/2016 1/31/2017
2 2/1/2017 2/28/2017
3 3/1/2017 3/27/2017
The result for 2/23/2017 should be 2.
I've tried numerous things, but keep drawing a blank.
Appreciate any direction, thanks.
Thanks for the help.
Greg
ActgIndx startperiod end period
1 12/26/2016 1/31/2017
2 2/1/2017 2/28/2017
3 3/1/2017 3/27/2017
The result for 2/23/2017 should be 2.
I've tried numerous things, but keep drawing a blank.
Appreciate any direction, thanks.
Thanks for the help.
Greg