I'm creating a database for a cheque cashing service and need to calculate the what the day will be 4 working days from the current date. Now I need to exclude Saturdays, Sundays and all the UK bank holidays:
New Years Day
Good Friday
Easter Monday
May Bank Holiday
Spring Bank Holiday
Summer Bank Holiday
Christmas Day
Boxing Day
Obviously with Christmas Day, Boxing Day & New Years Day, if they fall on a Saturday or Sunday then the actual days we would have off work will be carried forward to the next working day e.g. Christmas Day & Boxing Day (25th & 26th) fall on a Saturday and Sunday this year, so we will be off work on the 27th and 28th.
Now I've found a post (http://www.access-programmers.co.uk/forums/showthread.php?t=54510&highlight=bank+holidays)where Mile-O-Phile posted an example of how to do this. However, it doesn't deal with the above where if Christmas Day, Boxing Day and New Years Eve fall on a Saturday or Sunday. I've had a look at Mile-O-Philes code but haven't got a clue how I would change it. Any ideas?
New Years Day
Good Friday
Easter Monday
May Bank Holiday
Spring Bank Holiday
Summer Bank Holiday
Christmas Day
Boxing Day
Obviously with Christmas Day, Boxing Day & New Years Day, if they fall on a Saturday or Sunday then the actual days we would have off work will be carried forward to the next working day e.g. Christmas Day & Boxing Day (25th & 26th) fall on a Saturday and Sunday this year, so we will be off work on the 27th and 28th.
Now I've found a post (http://www.access-programmers.co.uk/forums/showthread.php?t=54510&highlight=bank+holidays)where Mile-O-Phile posted an example of how to do this. However, it doesn't deal with the above where if Christmas Day, Boxing Day and New Years Eve fall on a Saturday or Sunday. I've had a look at Mile-O-Philes code but haven't got a clue how I would change it. Any ideas?