Link to home
Start Free TrialLog in
Avatar of LenkaL
LenkaLFlag for United States of America

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.
Avatar of flavo
flavo
Flag of Australia image

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?
Avatar of JRossi1
JRossi1

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
ASKER CERTIFIED SOLUTION
Avatar of JohnK813
JohnK813
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LenkaL

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.
Avatar of LenkaL

ASKER


 That is good,
 I will worry about the holidays later. Will just test that functionality.