WeekMonday()
Posted by: fredometro on
Jan 1st, 2004 |
Filed under: MS-Access
Retrieves the date of the monday of a given week. You need the WeekDay() function to make this one work.
Public Function WeekMonday(TheYear As Integer, TheWeek As Integer)
Dim tmpWeek, tmpYear As Integer
Dim tmpDate As Date
tmpDate = DateSerial(TheYear, 6, 30)
While WeekDay(tmpDate, vbMonday) <> 1
tmpDate = DateAdd(”d”, -1, tmpDate)
Wend
While WeekNumber(tmpDate) < TheWeek
tmpDate = DateAdd(”d”, 7, tmpDate)
Wend
While WeekNumber(tmpDate) > TheWeek And DateSerial(Year(tmpDate), 1, 1) = DateSerial(TheYear, 1, 1)
tmpDate = DateAdd(”d”, -7, tmpDate)
Wend
WeekMonday = tmpDate ‘DateAdd(”d”, -7, tmpDate)
End Function


August 17th, 2009 at 9:39 pm
Dating http://loveepicentre.com Online Dating
August 18th, 2009 at 3:16 am
jobs and medical transcription http://pharmacyrxworld.info/item/diclofenac.html?lng=uk&cv=po san jose medical group north jackson
August 19th, 2009 at 9:43 pm
foreign bank supervision enhancement act http://legalrxdrugstore.com/articles.php?articleId=20&cv=us parathyroid calcium
August 20th, 2009 at 6:39 am
caduces medical center http://legalrxdrugstore.com/item/liponexol.html?id=3796&cv=eu roleplay as blood elf
December 11th, 2009 at 9:56 pm
Juicy Pearl
December 11th, 2009 at 9:57 pm
Shemale Asia
December 11th, 2009 at 9:59 pm
Little Lupe
December 11th, 2009 at 10:00 pm
Anal Ultra
December 11th, 2009 at 10:01 pm
Shays Space
December 11th, 2009 at 10:02 pm
Hairy Pussy Porno
December 11th, 2009 at 10:04 pm
Girly Love
December 11th, 2009 at 10:05 pm
Jeremy Roddick
December 11th, 2009 at 10:06 pm
Debbie Teen
December 11th, 2009 at 10:07 pm
Tits And Tugs
December 11th, 2009 at 10:08 pm
Older Woman Sex Videos
December 11th, 2009 at 10:09 pm
Miley Ann Pussy
December 11th, 2009 at 10:10 pm
Sinful Centerfolds
December 11th, 2009 at 10:11 pm
Anette Dawn
December 11th, 2009 at 10:12 pm
Free Gay Sex
Add A Comment
You must be logged in to post a comment.