[AccessD] Last Business Day of the Month
Stuart McLachlan
stuart at lexacorp.com.pg
Sat Apr 8 16:23:52 CDT 2023
On 8 Apr 2023 at 14:05, Rocky Smolin wrote:
> If the rule is: last business day of the month is when the Day of
> Week is not Friday or Saturday then , I would write a function to
> take the last day of the month and if the day of the week of the last
> day of the month was a Saturday or Sunday, then start subtracting a
> day at a time looking at the day of the week. When it finds
> Monday-Friday DOW, return that date.
>
What about when Easter Friday or Monday fall on Mar 31, or a Public Holiday falls on a
weekend and the Friday or Monday is in lieu or ....
Jim's concept of a Date table is the only really viable way to cover all eventualities.
It can built for a specific year according to specific business rules which take into account
things like the above.
More information about the AccessD
mailing list