[AccessD] Figuring the date...opposite request

Gustav Brock Gustav at cactus.dk
Sat Mar 7 13:31:55 CST 2009


Hi Mark

DatePart works (it is used in my function) but the first and/or the last values for year-week span New Year.
It has, however, always had a bug for week numbers of non-leap years which you have to correct for ... see the in-line comments.

/gustav


>>> markamatte at hotmail.com 07-03-2009 20:18 >>>

Thanks Gustav,

I hate to make assumptions...but "DatePart("yyyy",[date],1,3)" just doesn't work/ignores the arguments?

Thanks,

Mark






More information about the AccessD mailing list