A
Ann Scharpf
I am creating my first database, so I might be doing things
incorrectly/inefficiently here ... but this, in part, is what I've done.
Pertinent to this question are three tables and a query. I am working at a
goverment facility and am calculating salary expense data for a fiscal year
(crossing 2 calendar years with different pay rates.)
1. Table:Civilian payroll. 57 records. Salary level info & FY BEGIN/END
dates for each person (to accomodate mid-year hires & terminations.) Has
benefits rate, COLA etc.
2. Table:Standard variables (COLA, Benefits rate etc)
3. Table:Raw timesheet data, imported from time system
4. Query:Civilian overtime cost. Query is agains timesheet data. Totals
time with overtime time categories and multiplies by civilian overtime rate.
(Same is used for all employees.) Results table has 4 rows.
I am now trying to create a second query. The query worked fine when it
just used the first two tables (payroll & standard variables). Worked like a
gem for calculating the salary for each part of the year. Adds up correctly
and everything.
Now I want to add the overtime values for the 4 people who have overtime.
When I add the overtime cost query to the current query, I get 228 rows. So
I looked in my handy Access book and thought a left outer join would fix my
problem. (Payroll table on left, OT query on right). But when I try to run
the query, I get an error that says:
The SQL statement could not be executed because it contains ambiguous outer
joins. To force one of the joins to be performed first, create a separate
query that performs the first join and then include that query in your SQL
statement.
How do I get Access to do this? Thanks very much for any help you can give
me.
incorrectly/inefficiently here ... but this, in part, is what I've done.
Pertinent to this question are three tables and a query. I am working at a
goverment facility and am calculating salary expense data for a fiscal year
(crossing 2 calendar years with different pay rates.)
1. Table:Civilian payroll. 57 records. Salary level info & FY BEGIN/END
dates for each person (to accomodate mid-year hires & terminations.) Has
benefits rate, COLA etc.
2. Table:Standard variables (COLA, Benefits rate etc)
3. Table:Raw timesheet data, imported from time system
4. Query:Civilian overtime cost. Query is agains timesheet data. Totals
time with overtime time categories and multiplies by civilian overtime rate.
(Same is used for all employees.) Results table has 4 rows.
I am now trying to create a second query. The query worked fine when it
just used the first two tables (payroll & standard variables). Worked like a
gem for calculating the salary for each part of the year. Adds up correctly
and everything.
Now I want to add the overtime values for the 4 people who have overtime.
When I add the overtime cost query to the current query, I get 228 rows. So
I looked in my handy Access book and thought a left outer join would fix my
problem. (Payroll table on left, OT query on right). But when I try to run
the query, I get an error that says:
The SQL statement could not be executed because it contains ambiguous outer
joins. To force one of the joins to be performed first, create a separate
query that performs the first join and then include that query in your SQL
statement.
How do I get Access to do this? Thanks very much for any help you can give
me.