Hi friends,
This is my first topic in forum.
I search and read all about “Workdays”, but have some questions.
So, I create leave Access file and my request to show all working days in current month without Saturday and Sundays and Holidays. So in forum read so many topics but…. my trouble is:
I create access db like “Leave Dates Access 2000” (see attachment) . Thank you Jon K!!!!
This decision is most close with my erudition and I know is most easiest my colleague to change every year only one table with working days.
My question is how to change code(because I have so little knowledge) to see only this days in one month.
Example: 01.01.2009 to 27.03.2009 – how can I see how many workdays are in January, February, March.
Like: January 22 days
February 17 days
March 21 days
The code is:
SELECT [tbl_Leave].[LeaveID], [tbl_Leave].[StaffID], [tbl_Leave].[StartDate], [tbl_Leave].[EndDate], Count([tbl_WorkDays].[WorkDay]) AS [Number Of WorkDays]
FROM tbl_Leave, tbl_WorkDays
WHERE ((([tbl_WorkDays].[WorkDay]) Between [tbl_Leave].[StartDate] And [tbl_Leave].[EndDate]))
GROUP BY [tbl_Leave].[LeaveID], [tbl_Leave].[StaffID], [tbl_Leave].[StartDate], [tbl_Leave].[EndDate];
Thank you in advance!
This is my first topic in forum.
I search and read all about “Workdays”, but have some questions.
So, I create leave Access file and my request to show all working days in current month without Saturday and Sundays and Holidays. So in forum read so many topics but…. my trouble is:
I create access db like “Leave Dates Access 2000” (see attachment) . Thank you Jon K!!!!
This decision is most close with my erudition and I know is most easiest my colleague to change every year only one table with working days.
My question is how to change code(because I have so little knowledge) to see only this days in one month.
Example: 01.01.2009 to 27.03.2009 – how can I see how many workdays are in January, February, March.
Like: January 22 days
February 17 days
March 21 days
The code is:
SELECT [tbl_Leave].[LeaveID], [tbl_Leave].[StaffID], [tbl_Leave].[StartDate], [tbl_Leave].[EndDate], Count([tbl_WorkDays].[WorkDay]) AS [Number Of WorkDays]
FROM tbl_Leave, tbl_WorkDays
WHERE ((([tbl_WorkDays].[WorkDay]) Between [tbl_Leave].[StartDate] And [tbl_Leave].[EndDate]))
GROUP BY [tbl_Leave].[LeaveID], [tbl_Leave].[StaffID], [tbl_Leave].[StartDate], [tbl_Leave].[EndDate];
Thank you in advance!