T
Tia
Dear all,
Thank you so much for your help this forum was so much helpfull for me
i haven't any clue how to use the access i am better now because of
you.
I am trying to create a payroll calculation
i have sorted out the list of attendance by Sick leave, working days,
annual leave, Public holiday for each month of attendance.
What i need now is to join all the soreted out queries in one query
that gives me the total of working, sick, annual, public holiday for
each employee.
I am trying to do it but nothing is appearing here is the queries that
i have
Working list query=
SELECT [JANUARY 25-12/24-01 ATTENDANCE].ID, [JANUARY 25-12/24-01
ATTENDANCE].Employee, [JANUARY 25-12/24-01 ATTENDANCE].[Work Code],
Count([JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu]) AS
CountOf1stshiftqu, [JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu],
[JANUARY 25-12/24-01 ATTENDANCE].[Date Worked]
FROM [JANUARY 25-12/24-01 ATTENDANCE] AS [JANUARY 25-12/24-01
ATTENDANCE_1] INNER JOIN [JANUARY 25-12/24-01 ATTENDANCE] ON [JANUARY
25-12/24-01 ATTENDANCE_1].ID = [JANUARY 25-12/24-01 ATTENDANCE].ID
GROUP BY [JANUARY 25-12/24-01 ATTENDANCE].ID, [JANUARY 25-12/24-01
ATTENDANCE].Employee, [JANUARY 25-12/24-01 ATTENDANCE].[Work Code],
[JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu], [JANUARY 25-12/24-01
ATTENDANCE].[Date Worked];
COUNT WRKING DAYS FOR THIS MONTH=
=SELECT [JANURAY SORT BY WORKING DAY].Employee, CDbl(nz(Count([JANURAY
SORT BY WORKING DAY]![Lookup_Work Code.ID]),0)) AS [WORKING DAYS],
[JANURAY SORT BY WORKING DAY].[Work Code]
FROM [JANURAY SORT BY WORKING DAY]
GROUP BY [JANURAY SORT BY WORKING DAY].Employee, [JANURAY SORT BY
WORKING DAY].[Work Code];
count sick leave taken this month=
SELECT [JANURAY SORT BY SICK LEAVE].Employee, CDbl(nz(Count([JANURAY
SORT BY SICK LEAVE]![Lookup_Work Code.ID]),0)) AS [WORKING DAYS],
[JANURAY SORT BY SICK LEAVE].[Work Code]
FROM [JANURAY SORT BY SICK LEAVE]
GROUP BY [JANURAY SORT BY SICK LEAVE].Employee, [JANURAY SORT BY SICK
LEAVE].[Work Code];
our continuos help
Thank you for y
Thank you so much for your help this forum was so much helpfull for me
i haven't any clue how to use the access i am better now because of
you.
I am trying to create a payroll calculation
i have sorted out the list of attendance by Sick leave, working days,
annual leave, Public holiday for each month of attendance.
What i need now is to join all the soreted out queries in one query
that gives me the total of working, sick, annual, public holiday for
each employee.
I am trying to do it but nothing is appearing here is the queries that
i have
Working list query=
SELECT [JANUARY 25-12/24-01 ATTENDANCE].ID, [JANUARY 25-12/24-01
ATTENDANCE].Employee, [JANUARY 25-12/24-01 ATTENDANCE].[Work Code],
Count([JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu]) AS
CountOf1stshiftqu, [JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu],
[JANUARY 25-12/24-01 ATTENDANCE].[Date Worked]
FROM [JANUARY 25-12/24-01 ATTENDANCE] AS [JANUARY 25-12/24-01
ATTENDANCE_1] INNER JOIN [JANUARY 25-12/24-01 ATTENDANCE] ON [JANUARY
25-12/24-01 ATTENDANCE_1].ID = [JANUARY 25-12/24-01 ATTENDANCE].ID
GROUP BY [JANUARY 25-12/24-01 ATTENDANCE].ID, [JANUARY 25-12/24-01
ATTENDANCE].Employee, [JANUARY 25-12/24-01 ATTENDANCE].[Work Code],
[JANUARY 25-12/24-01 ATTENDANCE].[1stshiftqu], [JANUARY 25-12/24-01
ATTENDANCE].[Date Worked];
COUNT WRKING DAYS FOR THIS MONTH=
=SELECT [JANURAY SORT BY WORKING DAY].Employee, CDbl(nz(Count([JANURAY
SORT BY WORKING DAY]![Lookup_Work Code.ID]),0)) AS [WORKING DAYS],
[JANURAY SORT BY WORKING DAY].[Work Code]
FROM [JANURAY SORT BY WORKING DAY]
GROUP BY [JANURAY SORT BY WORKING DAY].Employee, [JANURAY SORT BY
WORKING DAY].[Work Code];
count sick leave taken this month=
SELECT [JANURAY SORT BY SICK LEAVE].Employee, CDbl(nz(Count([JANURAY
SORT BY SICK LEAVE]![Lookup_Work Code.ID]),0)) AS [WORKING DAYS],
[JANURAY SORT BY SICK LEAVE].[Work Code]
FROM [JANURAY SORT BY SICK LEAVE]
GROUP BY [JANURAY SORT BY SICK LEAVE].Employee, [JANURAY SORT BY SICK
LEAVE].[Work Code];
our continuos help
Thank you for y