Error message in report

G

Guest

SELECT OverTimebyEmp.Expr2, OverTimebyEmp.oTDLdaTE, OverTimebyEmp.oTDLOP,
OverTimebyEmp.oTDLhOURUSED, OVETTIMEUSEDOWN.oTDLhOURUSED,
OverTimebyEmp.oTBlocked, OverTimebyEmp.oVERtIMErEFUSED,
OverTimebyEmp.HrOffered, OverTimebyEmp.Whyexcused, Employees.SSI,
OverTimebyEmp.AuthorizationName
FROM OVETTIMEUSEDOWN RIGHT JOIN (OverTimebyEmp INNER JOIN Employees ON
OverTimebyEmp.SSI = Employees.SSI) ON OVETTIMEUSEDOWN.otdliD =
OverTimebyEmp.otdliD;

I get an error message in m y report. The specified field [oTDLhourused]
could refer t more than one table listed in the from clause of your sql
statement. How can I correct this, it works as a query but not in a report.
 
K

Ken Snell \(MVP\)

Sounds like the report has a control that uses a field name of
[oTDLhourused] in the expression, and the report doesn't know which query
field that means. In that control's ControlSource expression, change
[oTDLhourused] to either [OverTimebyEmp].[oTDLhOURUSED] or to
[OVETTIMEUSEDOWN].[oTDLhOURUSED], depending upon which field is the right
one to use.

It also may be in the Sorting & Grouping properties.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top