MS ACCESS VBA, working days function incl. holiday when faling on weekend

后端 未结 3 952
星月不相逢
星月不相逢 2021-01-27 06:17

When deploying MSDN function for calculating working days, beside a problem with date formatting I found an issue with Holiday count.

Calculation is correct, but only if

3条回答
  •  孤城傲影
    2021-01-27 06:47

    without delving into your code, I'd suggest doing a count of holidays in your holiday table that fall on weekends and which also fall inside the range of days you are considering. Subtract that total from an (I presume) otherwise correctly calculated total and you should have the proper adjustment taking weekend holidays into account.

提交回复
热议问题