Delete Query Error

Vesuvius

New Member
Joined
Jan 11, 2011
Messages
44
I get this error when executing a simple Delete Query.

"Could not delete from specified table."

First off the database is local to my machine and I just created it yesterday so it is not read only or is it a permission issue.
The query works fine as a select query or when I view the results but when executing I get the error message. Here is the SQL code that was generated when I setup the query using the two tables.

DELETE ZPPMRPHistory.*
FROM OmitItems INNER JOIN ZPPMRPHistory ON OmitItems.SAP = ZPPMRPHistory.SAP;


The first time I have had any issues with such a simple Delete query.

Any assistance is appreciated.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
try this

close access
COPY the database and make a BACKUP

now open the original database
open your query in design mode
then from the menu, choose View and then Properties

set Unique Records to true
run the query

that may work

I had a similar problem a few months ago and I think that was the solution, but I'm not positive
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,332
Members
449,077
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top