Hello Everyone,
I have a time sheet DB that adds up daily totals for a weekly commission. To do this I have set up three tables to handle this:
EmploeeTable:
EmployeeID
Lname
Fname
Payrate
CommTable:
HoursWorked
CommissionRate
WeeklyInput:
WeeklyInputID
EmployeeID
StartDate
Mon
Tue
Wed
Thu
Fri
Hours
Ive a query built on the Weekly Input table, which joins to the Employee table and the CommTable, then a form built off of this query.
This works fine for the first week, but the putting in subsequent weeks is a problem.
Question 1, Am I approaching this in the right manner, meaning my table layout and all?
Question 2, I thought maybe some sort of loop might be the answer, the first part of the form ask the user for the Startdate, and create a new record with that date for each employee.
If this is the answer, how do I do that? I’ve been pouring over several books and going though the FAQs here and cant seem to find what I need, or at least don’t know it if I did!
Any help is greatly appreciated.
Rick
I have a time sheet DB that adds up daily totals for a weekly commission. To do this I have set up three tables to handle this:
EmploeeTable:
EmployeeID
Lname
Fname
Payrate
CommTable:
HoursWorked
CommissionRate
WeeklyInput:
WeeklyInputID
EmployeeID
StartDate
Mon
Tue
Wed
Thu
Fri
Hours
Ive a query built on the Weekly Input table, which joins to the Employee table and the CommTable, then a form built off of this query.
This works fine for the first week, but the putting in subsequent weeks is a problem.
Question 1, Am I approaching this in the right manner, meaning my table layout and all?
Question 2, I thought maybe some sort of loop might be the answer, the first part of the form ask the user for the Startdate, and create a new record with that date for each employee.
If this is the answer, how do I do that? I’ve been pouring over several books and going though the FAQs here and cant seem to find what I need, or at least don’t know it if I did!
Any help is greatly appreciated.
Rick