This database I'm working on is just kicking my butt! I'm not very good with complex queries. I beg for some help.
Here are my tables:
tblEmployee
*EmpNo
LastName
FirstName
MI
DateHired
tblDeptPay
*EmpNo
*DateEffective
HomeDept
ShiftCode
HourlyPayRate
tblHoursWorked
*EmpNo
*WorkDate
HomeDept
RegHrs
OTHrs
DTHrs
Vacation
Sick
Holiday
Maint
Meet
Funeral
Jury
RawMaterial
WorkComp
Inventory
Other
tblOtherDeptWorked
*EmpNo
*WorkDate
*TempDept
TempDeptRegHrs
TempDeptOTHrs
I need a way to have a report that shows the EmpNo, Employee Name, and Gross Pay for a 2-week pay period. OTHrs and TempDeptOTHrs will be 1.5 times HourlyPayRate, DTHrs will be 2 times HourlyPayRate, and the rest the hours fields will be times HourlyPayRate. I've played around with a crosstab query but have no idea what I'm doing.
I will need another report that shows the EmpNo, Employee Name, Overtime Hours, Overtime Dollars grouped by Department for a 2-week pay period.
There is a one-to-many relationship between tblEmployee and tblDeptPay so I will need to grab the most recent record for each employee.
I appreciate anyone pointing me in the right direction.
Thanks,
Debbie
Here are my tables:
tblEmployee
*EmpNo
LastName
FirstName
MI
DateHired
tblDeptPay
*EmpNo
*DateEffective
HomeDept
ShiftCode
HourlyPayRate
tblHoursWorked
*EmpNo
*WorkDate
HomeDept
RegHrs
OTHrs
DTHrs
Vacation
Sick
Holiday
Maint
Meet
Funeral
Jury
RawMaterial
WorkComp
Inventory
Other
tblOtherDeptWorked
*EmpNo
*WorkDate
*TempDept
TempDeptRegHrs
TempDeptOTHrs
I need a way to have a report that shows the EmpNo, Employee Name, and Gross Pay for a 2-week pay period. OTHrs and TempDeptOTHrs will be 1.5 times HourlyPayRate, DTHrs will be 2 times HourlyPayRate, and the rest the hours fields will be times HourlyPayRate. I've played around with a crosstab query but have no idea what I'm doing.
I will need another report that shows the EmpNo, Employee Name, Overtime Hours, Overtime Dollars grouped by Department for a 2-week pay period.
There is a one-to-many relationship between tblEmployee and tblDeptPay so I will need to grab the most recent record for each employee.
I appreciate anyone pointing me in the right direction.
Thanks,
Debbie