Douglas J. Steele said:
Take a look in the Help file for Format: there are two optional
parameters
(firstdayofweek and firstweekofyear) that you can set. Alternatively, you
could use the DatePart function (which also has those two optional
parameters) rather than Format([Date Avail], "ww")
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Joan,
I have been trolling for an answer and this post comes the closest. I
am
formating a date available to come up with the interval week and year.
See
below.
InvenWeek & Year: Format([Date Avail],"yy") & Format(Format([Date
Avail],"ww"),"00")
As was stated in this post earlier, it defaults to a Sunday to start
the
week. How do I incorporate the DatePart to change the default to a
Thursday?
Thanks for your help!
:
DatePart(interval, date[,firstdayofweek[, firstweekofyear]])
Generally, when you provide such an expression, you can specify the
starting
day. Check out the function you are using in help. For example
DatePart(interval, date[,firstdayofweek[,firstweekofyear]])
--
Joan Wild
Microsoft Access MVP
Jono_Peek wrote:
Apparently when using the 'ww' expression to calculate week numbers
in Access the default starting day is a Sunday. Is there a way of
changing this default as when doing reports at our business we start
on a Monday which puts things a little bit out when trying to do
comparisons.