S
SueD
I am running Access 2000 and need help extracting a rolling 10 weeks worth of
data.
I have a table containing (amongst other things) a column that I need to
query on called WEEK NO, which contains a numeric value showing the week for
which the data was estimated. Problem is how to extract the data for the
current week and the next 9 weeks.
I have acheived this so far by building a query and adding the criteria
"DatePart("ww",Now())" to the WEEK NO to find data from the current week.
I have added "Or DatePart("ww",Now())+1" etc up to "Or
DatePart("ww",Now())+9" to include the whole 10 weeks worth of data. I know
this is long winded but I tried to use >< symbols and failed.
Near the end of the year, the week numbers for January will go back to 1
again, so this query will fail to include them in my 10 weeks block.
Is there a better way to do this and one that will not fail when at year end?
data.
I have a table containing (amongst other things) a column that I need to
query on called WEEK NO, which contains a numeric value showing the week for
which the data was estimated. Problem is how to extract the data for the
current week and the next 9 weeks.
I have acheived this so far by building a query and adding the criteria
"DatePart("ww",Now())" to the WEEK NO to find data from the current week.
I have added "Or DatePart("ww",Now())+1" etc up to "Or
DatePart("ww",Now())+9" to include the whole 10 weeks worth of data. I know
this is long winded but I tried to use >< symbols and failed.
Near the end of the year, the week numbers for January will go back to 1
again, so this query will fail to include them in my 10 weeks block.
Is there a better way to do this and one that will not fail when at year end?