Hello,
I know I am missing something silly but I'm struggling to identify what it is.
I have a basic query with 2 tables. Table 1 is tbl_EmployeeTimeTracking and includes the following fields : DateWorked, EmployeeName, Worktype, Worktypehours, JobType, JobDescription, JobTypeHours, Pieces, EmployeeID.
Table 2 is tbl_EmployeeWages and includes the following fields: EmployeeNumber, Employee, WorkType, Description, Wage
I am attempting an aggregate query to summarize the work by Employee, WorkType, Hours worked by each work type and the total earned by worktype. The fields in my query are as follows:
EmployeeName, WorkType, HoursWorked (this field is summed), Total Earned (HoursWorked * [tbl_EmployeeWages]![Wages]
The tables have a relationship using EmployeeID
When I run the query like this I get the employee duplicated - the hours are broken in half between two of the same Worktypes and a diffierent salary is applied to each entry.
For Example the results would look like this:
Jane Doe, Thrift (this is the only work type entered for this employee), 48, 0
Jane Doe, Thrift (this is the only work type entered for this employee), 48, 51.60
The results should read:
Jane Doe, Thrift, 96, 825.60
For Worktype, each employee has the possibility of 2 worktypes, so on the tbl_EmployeeWages employee 1 would have worktype Thift and worktype Laundry each with their own associated wage.
I am sorry this post is so long but i hope i explained everything clear enough for someone to help me understand what I need to fix and thank you in advance!