IIf(Weekday([HiredDate])=7,[HiredDate],[HiredDate]-Weekday([HiredDate])) AS TrainingStart, Date()+6-Weekday(Date()) AS EndOfWeek, DateDiff("ww",[TrainingStart],[EndOfWeek]) AS WeekNumber
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)