Two questions....
1) Is there a week(date) function that tells you what week the date falls in? E.g. week(1/1/07) would return 1.
and week(12/31/07) would return 52 or something like that.
2) For a calendar style equipment scheduling/tracking application where the max number of equipment changes weekly, I ultimately want to compare a max value of available equipment to the count that was entered/scheduled for the equipment and if the entered value exceeds the max value, I want the application to shout.
The approach I am thinking of taking is to have a x-ref table that has weeks 1 - 52 and the max number of equipment available that would be joined in a query to the equipment schedule data.
In the application, I want to look at the date that the equipment was scheduled for, determine the week (1-52) and then compare the count of scheduled equipment to the max value in the x-ref table. If the count exceeds the max then "shout".
Does that seem like a sound plan? any alternate ideas?
Thanks.
Noel
1) Is there a week(date) function that tells you what week the date falls in? E.g. week(1/1/07) would return 1.
and week(12/31/07) would return 52 or something like that.
2) For a calendar style equipment scheduling/tracking application where the max number of equipment changes weekly, I ultimately want to compare a max value of available equipment to the count that was entered/scheduled for the equipment and if the entered value exceeds the max value, I want the application to shout.
The approach I am thinking of taking is to have a x-ref table that has weeks 1 - 52 and the max number of equipment available that would be joined in a query to the equipment schedule data.
In the application, I want to look at the date that the equipment was scheduled for, determine the week (1-52) and then compare the count of scheduled equipment to the max value in the x-ref table. If the count exceeds the max then "shout".
Does that seem like a sound plan? any alternate ideas?
Thanks.
Noel