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!

Could Not Delete from Specifid Tables

Status
Not open for further replies.

blizkij

Technical User
Oct 11, 2001
22
AU
Hi,

I'm running a delete query based on 2 tables (requesthours and refresh_date) and deleting based on requesthourse.last_mod_date being greater than refresh_date.date. It works fine in the previous however I get the error Could Not Delete from Specified Tables.

DELETE tbl_RequestHours.*, tbl_RequestHours.last_mod_dt
FROM tbl_RequestHours INNER JOIN tbl_refreshdate ON tbl_RequestHours.last_mod_dt = tbl_refreshdate.date
WHERE (((tbl_RequestHours.last_mod_dt)>([tbl_refreshdate].[date])));

nikki
 
The delete syntax.

DELETE
FROM tbl_RequestHours INNER JOIN tbl_refreshdate ON tbl_RequestHours.last_mod_dt = tbl_refreshdate.date
WHERE (((tbl_RequestHours.last_mod_dt)>([tbl_refreshdate].[date])));
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top