Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql expression

Status
Not open for further replies.

qlan

MIS
Feb 10, 2005
84
US
Hello,

Below is my sql expression. However, it gives me this error message, "Error in compling SQL Expression:
Query Engine Error: DAO Error Code: 0xd1a
Source: DAO.Database
Description: At most one record can be returned by this subquery."

SELECT tblEmployees.EmployeeID
FROM tblEmployees
WHERE NOT EXISTS (SELECT tblLostTime.EmployeeID
FROM tblLostTime
WHERE tblEmployees.EmployeeID = tblLostTime.EmployeeID)

Would you please help what does this mean. Thanks so much.
 
A SQL expression cannot be used to return multiple records. Instead, place your query in a command object (database->database expert->your datasource->add command).

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top