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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting from join queries

Status
Not open for further replies.

ciarra41

Technical User
Sep 11, 2006
116
US
Is there something wrong with deleting join queries in Access? At first it ran just fine but now I’m getting that annoying message: Could not delete from the specified tables. What happen?

DELETE table1.IDtable1, table2.*
FROM table2 INNER JOIN table1 ON table2.IDtable2 = table1.IDtable1;
 
Try adding DELETE DISTINCTROW, this happens to me very often.

However, You cannot delete a single column from your table.

This is how I would delete everything from table 2 though.

Code:
DELETE table2.*
FROM table2 INNER JOIN table1 ON table2.IDtable2 = table1.IDtable1;

Hope it helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top