DateAdd Function adding only business days
DateAdd Function adding only business days
(OP)
Hi,
I thought that the following would only add 10 to the week days (business days M-F) but it is adding 10 days including weekends. Is there another way, easy way? I've seen a lot of coding examples but I thought there would be an interval setting that could be used?
Here's my example:
DateAdd("w",10,[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start])
Thanks!
I thought that the following would only add 10 to the week days (business days M-F) but it is adding 10 days including weekends. Is there another way, easy way? I've seen a lot of coding examples but I thought there would be an interval setting that could be used?
Here's my example:
DateAdd("w",10,[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start])
Thanks!
RE: DateAdd Function adding only business days
Switch(format("ddd",[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]) = "Sat", DateAdd("w",14,[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]),
format("ddd",[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]) = "Sun", DateAdd("w",13,[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]), format("ddd",[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]) = "Mon", DateAdd("w",12,[tbl_Item_Detail_Calcs]![Item_Setup_Clock_Start]), etc.)
I hope that helps.
RE: DateAdd Function adding only business days
Have fun.
---- Andy
A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
RE: DateAdd Function adding only business days
And Laurie, I had never used the Switch function so thanks for teaching me that!