Bank Holiday Date Issue

simon4amiee

Registered User.
Local time
Today, 18:36
Joined
Jan 3, 2007
Messages
109
Hi guys, I've a nice formula which work the majority of the time, the only time this doesn't work is Bank Holidays. Is there a way to build on this:

>=Date()-IIf(Weekday(Date(),2)<2,4,2) And <=Date()-1

The above simply runs a report for the last working day, expect if today is a Monday then it runs Fri-Sun.

Im assuming if I know the dates of the Bank Holidays I could hardcode them into the beginning with multiple IIF statement followed by the one above??
 
Best solution would be to have a function calculate it so you can have a seperate table with bank holidays which would be easier to maintain than hardcoding dates.
Too many exceptions to deal with IMHO...

Have a look at these threads for some inspiration.
http://www.access-programmers.co.uk/forums/showthread.php?t=238821&highlight=Holiday
http://www.access-programmers.co.uk/forums/showthread.php?t=133329&highlight=Holiday
http://www.access-programmers.co.uk/forums/showthread.php?t=174215&highlight=Holiday
 

Users who are viewing this thread

Back
Top Bottom