I am attempting to automate the payroll for our auditing department. Currently, I have 2 tables including
Employees: PayDetail:
Employee_No (Key) Employee_No
EmpLastName DateWorked
EmpFirstName RegHrsWorked
EmpAddress OT_Hours
EmpCity Personal_Hrs_Taken
EmpState Holiday_Hrs_Taken
EmpZip Vacation_Hrs_Taken
EmpPhone Sick_Hrs_Taken
DateOfHire Comp_Hrs_Taken
EmpTerminationDate Funeral_Hrs_Taken
EmpInactive Yes/no Comp_Hrs_Earned
Rate PayDetailID (key)
I have a form based on the employee table. The form has a subform based on the PayDetail table. When the employee opens the form, they are only able to see their information. Our pay periods start every other Friday and I would like to automatically include all of the applicable dates into the subform so that the employee / supervisor would only have to plug in their hours. I would also like for the user to have the ability to enter hours for previous pay periods (with all of the appropriate dates automatically being entered when the form is opened). I've tried several different ways to do this but I haven't come up with a good solution. Is there a good way to do this either in vba or in some type of query? I've tried several queries but can't seem to get all of the appropriate dates to appear. Thank you in advance!
Employees: PayDetail:
Employee_No (Key) Employee_No
EmpLastName DateWorked
EmpFirstName RegHrsWorked
EmpAddress OT_Hours
EmpCity Personal_Hrs_Taken
EmpState Holiday_Hrs_Taken
EmpZip Vacation_Hrs_Taken
EmpPhone Sick_Hrs_Taken
DateOfHire Comp_Hrs_Taken
EmpTerminationDate Funeral_Hrs_Taken
EmpInactive Yes/no Comp_Hrs_Earned
Rate PayDetailID (key)
I have a form based on the employee table. The form has a subform based on the PayDetail table. When the employee opens the form, they are only able to see their information. Our pay periods start every other Friday and I would like to automatically include all of the applicable dates into the subform so that the employee / supervisor would only have to plug in their hours. I would also like for the user to have the ability to enter hours for previous pay periods (with all of the appropriate dates automatically being entered when the form is opened). I've tried several different ways to do this but I haven't come up with a good solution. Is there a good way to do this either in vba or in some type of query? I've tried several queries but can't seem to get all of the appropriate dates to appear. Thank you in advance!