G
Guest
Hi. I'm going to try my best to explain my problem so stick with me. I am
trying to make a way to base my employee's salary off of Pay Type (Weekday,
Weekend and Holiday), Month and Employee. What I have done is created 3
tables as followed:
Table 1 - Time : Employee's Initials, Date Worked, Pay Type and Hours Worked
Table 2 - Pay Group: Employee's Initials, Pay Group and Date (when pay group
took effect)
Table 3 - Type of Call - Pay Group, Pay Type and Pay Rate
Ever employee is in a pay group. A pay group simply specifies the pay rate
for the different pay types.
So here is what the table might look like:
Table 1 - TJE 5/1/2005 Weekday 8
TJE 6/1/2006 Weekday 8
Table 2 - TJE 1 5/1/2005
TJE 2 6/1/2006
Table 3 - 1 Weekday $10
1 Weekend $15
2 Weekday $20
2 Weekend $25
The problem is when I make a query using Employee's Initials, Hours Worked,
Pay Type, Date (of Hours Worked), Date (when Pay Group took effect), Pay Rate
and Pay Group, it comes out like this:
TJE 8 Weekday 5/1/2005 5/1/2005 $10 1 (should use this one)
TJE 8 Weekday 5/1/2005 6/1/2006 $20 2
TJE 8 Weekday 6/1/2005 5/1/2005 $10 1
TJE 8 Weekday 6/1/2005 6/1/2006 $20 2 (should use this one)
On both dates I used "Between [Type Start Date] And [Type End Date]" in the
criteon. It doesn't seems to understand that each day hours are worked, there
will only be one pay group used. I would like it so it uses pay group 1 from
5/1/2005 until 5/31/2006 and then used pay group 2 from 6/1/2006 on. I know
this will probably be a time consuming problem to help solve, but I would
really appreciate the help!
trying to make a way to base my employee's salary off of Pay Type (Weekday,
Weekend and Holiday), Month and Employee. What I have done is created 3
tables as followed:
Table 1 - Time : Employee's Initials, Date Worked, Pay Type and Hours Worked
Table 2 - Pay Group: Employee's Initials, Pay Group and Date (when pay group
took effect)
Table 3 - Type of Call - Pay Group, Pay Type and Pay Rate
Ever employee is in a pay group. A pay group simply specifies the pay rate
for the different pay types.
So here is what the table might look like:
Table 1 - TJE 5/1/2005 Weekday 8
TJE 6/1/2006 Weekday 8
Table 2 - TJE 1 5/1/2005
TJE 2 6/1/2006
Table 3 - 1 Weekday $10
1 Weekend $15
2 Weekday $20
2 Weekend $25
The problem is when I make a query using Employee's Initials, Hours Worked,
Pay Type, Date (of Hours Worked), Date (when Pay Group took effect), Pay Rate
and Pay Group, it comes out like this:
TJE 8 Weekday 5/1/2005 5/1/2005 $10 1 (should use this one)
TJE 8 Weekday 5/1/2005 6/1/2006 $20 2
TJE 8 Weekday 6/1/2005 5/1/2005 $10 1
TJE 8 Weekday 6/1/2005 6/1/2006 $20 2 (should use this one)
On both dates I used "Between [Type Start Date] And [Type End Date]" in the
criteon. It doesn't seems to understand that each day hours are worked, there
will only be one pay group used. I would like it so it uses pay group 1 from
5/1/2005 until 5/31/2006 and then used pay group 2 from 6/1/2006 on. I know
this will probably be a time consuming problem to help solve, but I would
really appreciate the help!