One solution could be to add an "index" for the YearWeek in your time table with AutoNumber:
AutoNumber(YearWeek, 'YearWeekID') as [YearWeekID];
Then you can just do simple integer calculating on this "index", e.g. the YearWeeID.
You just need to get the ID of your actual YearWeek in a variable.
Hope it helps