Hi
I have searched the internet looking for a solution but being new to Access I did not understand most of what I found. There is alot of information on VBA but I do not relly understand it and am not sure exactly to place it in the query.
I want to calculate the number of working days between two dates.
My SQL statement is as follows:
SELECT tblEmployeeID_Pk.First_Name, tblEmployeeID_Pk.Last_Name, tblLeave_Type.Description, tblLeaveCount.Start_Date, tblLeaveCount.Finish_Date, DateDiff("d",[Start_Date],[Finish_Date])+1 AS Workdays
FROM tblHolidays INNER JOIN (tblLeave_Type INNER JOIN (tblEmployeeID_Pk INNER JOIN tblLeaveCount ON tblEmployeeID_Pk.EmployeeID_Pk = tblLeaveCount.EmployeeID_Fk) ON tblLeave_Type.Leave_TypeID_Pk = tblLeaveCount.Leave_Type_FK) ON tblHolidays.None_Work_DayID_Pk = tblLeave_Type.Leave_TypeID_Pk;
I get the number of days in the month but I need the number of working days. I have a table called tblHolidays wich includes all the public holidays. Please help