I want to use the Datepart function to determine the week number based on my company's fiscal calendar which starts Nov. 1.
I have tried the following and they all produce #ERROR# .
DatePart("ww",[Change Calendar qry 1]![Target Date],2,"11/01/2005")
DatePart("ww",[Change Calendar qry 1]![Target Date],2,#11/1/2005#)
If leave the Nov 1 date out, I get a result that appears to be based on Jan 1 as the date. It also appears to be the week number in the year, such that Jan 1 in 2005 and 2006 both have a week number of 1.
The end result I'm looking for the following results
Nov 1, 2005, results in week number 1
Nov 1, 2006, results in week number 53.
Any help or insight would be appreciated.
Thanks
I have tried the following and they all produce #ERROR# .
DatePart("ww",[Change Calendar qry 1]![Target Date],2,"11/01/2005")
DatePart("ww",[Change Calendar qry 1]![Target Date],2,#11/1/2005#)
If leave the Nov 1 date out, I get a result that appears to be based on Jan 1 as the date. It also appears to be the week number in the year, such that Jan 1 in 2005 and 2006 both have a week number of 1.
The end result I'm looking for the following results
Nov 1, 2005, results in week number 1
Nov 1, 2006, results in week number 53.
Any help or insight would be appreciated.
Thanks
Comment