Originally posted by: notfred
Hmm, is this the Software forum? Why, no, it's not. Imagine that.
Originally posted by: PricklyPete
I'm assuming you know what year you are in. You could easily formulate a function that used the number of days a week multiplied by the number of weeks in the db - 1. this would give you a date in the week stored in the db. From there, just
You can then use this date (using "foundDate" as variable) in the following funciton to figure out how many days you need to subtract from the date to get to the beginning of the week you want.
iDay = WeekDay(foundDate, vbSunday)
so
final Date = foundDate - iDay