R
ryan.fitzpatrick3
I have a query where it downloads information out of our database.
This database has volumes of items in weeks instead of days. so the
format would be 200801 for 2008 week 1, 200802, 200803, etc etc. Now I
want the last or most current week in the table, so I tried doing last
or max to get 200824, since we are in the 24th week of the year. The
table would look like this
item# item name quantity week
112345 shoes 100 200801
112345 shoes 56 200802
112345 shoes 112 200803
etc
etc
for all items.
How can I get it just to reflect the current week we are in only? I
know I can type 200824 in the criteria and that will work but in 3
months from now when its week 200832 I don't want to manually type in
200832 or whatever week it is in. Like I mentioned above when I used
last or max, it pulls the last or max of each week since they are
different.
Ryan
This database has volumes of items in weeks instead of days. so the
format would be 200801 for 2008 week 1, 200802, 200803, etc etc. Now I
want the last or most current week in the table, so I tried doing last
or max to get 200824, since we are in the 24th week of the year. The
table would look like this
item# item name quantity week
112345 shoes 100 200801
112345 shoes 56 200802
112345 shoes 112 200803
etc
etc
for all items.
How can I get it just to reflect the current week we are in only? I
know I can type 200824 in the criteria and that will work but in 3
months from now when its week 200832 I don't want to manually type in
200832 or whatever week it is in. Like I mentioned above when I used
last or max, it pulls the last or max of each week since they are
different.
Ryan