Excluding weekends and bank holidays

thedeadzeds

Registered User.
Local time
Today, 08:29
Joined
Jan 8, 2014
Messages
40
Hi Guys,

Is there a way of auto populating a date based on another date whilst excluding weekends and bank holidays?

So with regards to the attached database, can date due in frm_1 show 1 WORKING day ahead of the date input (eg date input is 14/10/15 so date due should show 15/10/15). This obviously gets tricky on a Friday (or bank holidays) as I don’t want the date to then show a Saturday for example?

Hope this makes sense?

Regards
 

Attachments

here try a made another table tblHoliday, you should fill this table with actual holidays in your area.
 

Attachments

then don't use the constant variable


Dim strDateToIgnore as string
Select Case B_date Case 1 strDateToIgnore = "Fri/Sat" Case 2 strDateToIgnore = "Fri/Sat/mon/wed" End Select
 
from where are you calling this function. its supposed to skip those dates, and in your case statement.
 
is it possible for you to upload your db?
 

Users who are viewing this thread

Back
Top Bottom