R
Rick_DD
I may have discovered a problem with the datepart function.
I inserted this as an expression field in a query:
test: DatePart("ww",#12/30/1991#,2,2)
With the provided optional arguments to the function (firstdayofweek
=2=vbMonday, firstweekofyear=2=vbFirstFourDays), the result should be "1" but
it returns "53".
According to MS Outlook calendar, plus another independent source, this date
is a monday. Thus 1/1/1992 is a Wednesday, and with 1/1 thru 1/5 in the same
week, should be considered week 1.
Does anybody else get the same results? Am I doing something wrong?
I inserted this as an expression field in a query:
test: DatePart("ww",#12/30/1991#,2,2)
With the provided optional arguments to the function (firstdayofweek
=2=vbMonday, firstweekofyear=2=vbFirstFourDays), the result should be "1" but
it returns "53".
According to MS Outlook calendar, plus another independent source, this date
is a monday. Thus 1/1/1992 is a Wednesday, and with 1/1 thru 1/5 in the same
week, should be considered week 1.
Does anybody else get the same results? Am I doing something wrong?