Hi,
I'm having an issue calculating networkdays in Access 2007. I've read a number of threads on this forum and the VB forum and tried the sample code but cannot seem to deduct the holidays from the given dates.
Please find link below to my sample Access 2007 database that I've created with 2 tables (Employees, Holidays) and a query for subtracting the dates, which uses the function with the code. Given that the StartDate is 01/09/2010 and EndDate is 30/09/2010, I would expect the function to return '14' in the SickDays field in Query1, as 01/09/2010 to 10/09/2010 are set as holidays in the 'Holidays' table and after taking off the weekend days, you should be left with only 14 days.
Link to access database:
I have also tried a few examples off the Internet and am begining to think whether I'm doing something wrong with the way I've created the date fields in my database?
Thank you for your help in advance.
Hach
I'm having an issue calculating networkdays in Access 2007. I've read a number of threads on this forum and the VB forum and tried the sample code but cannot seem to deduct the holidays from the given dates.
Please find link below to my sample Access 2007 database that I've created with 2 tables (Employees, Holidays) and a query for subtracting the dates, which uses the function with the code. Given that the StartDate is 01/09/2010 and EndDate is 30/09/2010, I would expect the function to return '14' in the SickDays field in Query1, as 01/09/2010 to 10/09/2010 are set as holidays in the 'Holidays' table and after taking off the weekend days, you should be left with only 14 days.
Link to access database:
I have also tried a few examples off the Internet and am begining to think whether I'm doing something wrong with the way I've created the date fields in my database?
Thank you for your help in advance.
Hach