G
Guest
I created a table named WeekId which contains the following fields:
WeekID (PK) (ie. weekID = 28)
BegDate (Date) Format: Short date (ie. 07/05/04) (weekID = 28)
EndDate (Date) Format: Short date (ie. 07/11/04) (weekID = 28)
I also created a table called JobsinProgAssigned, which contains:
- a look-up field called WeekID to the above noted table
- a field called DateIn which is an actual date field (ie. July 8, 2004)
I want to create an Update query which will:
- take the date in the DateIn.JobsinProgAssigned (ie. July 8, 2004)
- add 52 weeks to it (ie. July 1, 2005)
- find the week range it fits into in WeekID.WeekID (ie. 06/27/05 - 07/03/05 - which is weekID #79 on my table)
- update the WeekID.JobsinProgress field to the WeekID.WeekID found in the previous steps (ie. 79)
In essence, I am receiving a file on a particular date, July 8, 2004. When I am done with this file, I want to roll it forward to the next year(2005) so that I can create a schedule for 2005. This schedule will place all files exactly 52 weeks in advance of when I received them this year -2004 (ie. for this particular file the week would be: June 27 - July 3, 2005).
If you can help me out that would be spectacular!
Thanks
WeekID (PK) (ie. weekID = 28)
BegDate (Date) Format: Short date (ie. 07/05/04) (weekID = 28)
EndDate (Date) Format: Short date (ie. 07/11/04) (weekID = 28)
I also created a table called JobsinProgAssigned, which contains:
- a look-up field called WeekID to the above noted table
- a field called DateIn which is an actual date field (ie. July 8, 2004)
I want to create an Update query which will:
- take the date in the DateIn.JobsinProgAssigned (ie. July 8, 2004)
- add 52 weeks to it (ie. July 1, 2005)
- find the week range it fits into in WeekID.WeekID (ie. 06/27/05 - 07/03/05 - which is weekID #79 on my table)
- update the WeekID.JobsinProgress field to the WeekID.WeekID found in the previous steps (ie. 79)
In essence, I am receiving a file on a particular date, July 8, 2004. When I am done with this file, I want to roll it forward to the next year(2005) so that I can create a schedule for 2005. This schedule will place all files exactly 52 weeks in advance of when I received them this year -2004 (ie. for this particular file the week would be: June 27 - July 3, 2005).
If you can help me out that would be spectacular!
Thanks