Avatar of SteveL13
SteveL13
Flag for United States of America

asked on 

Query Question

I have a query that has a field named "Start".  I also have a separate table named tblWeekNumbers.  This table looks like this:

WeekNumbers
Note that week 1 is from 8/16/2015 through 8/22/2015, Week 2 is from 8/23/2015 through 8/29/2015, etc.  The dates and the PK number in this table will never change.

Now in the query I need to add a field named "WeeK"  If the date in the field "Start" in the query is between 8/16/2015 and 8/22/2015 then I want the new field in the query named "Week" to show "1".  If the date in the field "Start" in the query is between 8/23/2015 and 8/29/2015 then I want the new field in the query named "Week" to show "2", etc.

How can I add this field and value to the query?
Microsoft Access

Avatar of undefined
Last Comment
SteveL13

8/22/2022 - Mon