Delete query

G

Guest

Hello,
My select query works fine, but when I change it to a delete query, I get
"Could not delete from specified tables." I have selected records from
EmpEdudel and I want to delete all those records from NewEmp.

Here is the SQL:
SELECT NewEmp.*
FROM EmpEdudel INNER JOIN NewEmp ON EmpEdudel.Intake_ID = NewEmp.Intake_ID;

Help!
 
G

Guest

Actually, solved my own problem thanks to previous questions posted here -
thanks anyway!!
 
J

Jason Lepack

Hello,
My select query works fine, but when I change it to a delete query, I get
"Could not delete from specified tables." I have selected records from
EmpEdudel and I want to delete all those records from NewEmp.

Here is the SQL:
SELECT NewEmp.*
FROM EmpEdudel INNER JOIN NewEmp ON EmpEdudel.Intake_ID = NewEmp.Intake_ID;

Help!

Try this:

SELECT *
FROM NewEmp
WHERE Intake_ID In (SELECT Intake_ID FROM EmpEdudel);

But know that if you're setting up this as a delete query so that you
can run an append query, you could just use an Update Query.
 

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