TheSearcher
Registered User.
- Local time
- Today, 01:34
- Joined
- Jul 21, 2011
- Messages
- 342
See attached db.
The Get_WeekNo() sub gives me the results I need - but there must be a more efficient way of accomplishing this that I just can't think of at the moment.
I'm trying to update the TheWeekNo field to the proper week number. Each new week begins on a Monday. As I said the procedure works but what am I missing in terms of logic? I shouldn't have to run 364 queries.
Note: To set TheWeekNo field back to null just run the Update_WeekNo query.
Thanks in advance,
TS
The Get_WeekNo() sub gives me the results I need - but there must be a more efficient way of accomplishing this that I just can't think of at the moment.
I'm trying to update the TheWeekNo field to the proper week number. Each new week begins on a Monday. As I said the procedure works but what am I missing in terms of logic? I shouldn't have to run 364 queries.
Note: To set TheWeekNo field back to null just run the Update_WeekNo query.
Thanks in advance,
TS