LenkaL
asked on
Find the 5th business day
Hello experts,
In MS Access I need a VBA code to check if today is the 5th business day of the month.
Thanks.
Wont it always be the 7th of the month? Unless you are including bank/public holidays.. Are you counting these?
Could also be the 5th or 6th, if the month starts on a Sun or Mon. I'm trying to work out the logic.
ahh. Sure is
What about public holidays?
What about public holidays?
Check out this link that contains a formula to find the nth particular weekday of any month:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvbadev/html/findingnthparticularweekdayinmonth.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvbadev/html/findingnthparticularweekdayinmonth.asp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
Will try it.
Still not sure what to do about holidays. Perhaps we could create a table, then have the user enter holidays at the beginning of the year. (Unless these are available somewhere.) We'd need to figure out what to do from there, though.
ASKER
That is good,
I will worry about the holidays later. Will just test that functionality.