I have a table named "WEEKS", consisting of one field ([WEEK NO]) that contains the week numbers of each week of the year, 1-52.
Our fiscal year always begins on Oct. 1 and ends the following Sep. 30. Our work weeks begin on Sat. and end the following Fri. So, when a month ends in the middle of a week, such as Feb., the portion of of the week that is in Feb. is Week No. 22A. The portion of the week that begins Mar. is Week 22B. Together, these "split" weeks make up Week 22. Hope this makes sense.
The "WEEKS" table is the "master" for the current year. When I import a year's worth of data I need to be sure that the week numbers in the imported file match the "master" week numbers in the "WEEKS" table. For example, if there is a Week 26A and a Week 26B in the import file but there is only a Week 26 in the "master" table, I need to combine the data in the 26A and 26B fields in the import file and rename the combined field as Week 26.
I have tried to loop through the values in the [WEEKS NO] field in the "WEEKS" table but I don't know how to structure a comparison and how to combine the data.
Thanks in advance for any help anyone can provide.
Our fiscal year always begins on Oct. 1 and ends the following Sep. 30. Our work weeks begin on Sat. and end the following Fri. So, when a month ends in the middle of a week, such as Feb., the portion of of the week that is in Feb. is Week No. 22A. The portion of the week that begins Mar. is Week 22B. Together, these "split" weeks make up Week 22. Hope this makes sense.
The "WEEKS" table is the "master" for the current year. When I import a year's worth of data I need to be sure that the week numbers in the imported file match the "master" week numbers in the "WEEKS" table. For example, if there is a Week 26A and a Week 26B in the import file but there is only a Week 26 in the "master" table, I need to combine the data in the 26A and 26B fields in the import file and rename the combined field as Week 26.
I have tried to loop through the values in the [WEEKS NO] field in the "WEEKS" table but I don't know how to structure a comparison and how to combine the data.
Thanks in advance for any help anyone can provide.