I am trying to show the appointments for the current week using the datepart() function. Right now it works great, but my client wants the "current week" to be Monday through Sunday.
I have a new field in a query calculating the Datepart of the [ApptDate] field: DatePart("ww",[ApptDate])
with the criteria being: DatePart("ww",Date())
I just need Access to think that the current week is Monday through Sunday.
The DatePart function syntax has these named arguments:
Part Description
interval Required. String expression that is the interval of time you want to return.
date Required. Variant (Date) value that you want to evaluate.
firstdayofweek Optional. A constant that specifies the first day of the week. If not specified, Sunday is assumed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.