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

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

james_lankford

Well-known Member
Joined
Jan 11, 2009
Messages
1,207
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
 

Vesuvius

New Member
Joined
Jan 11, 2011
Messages
44
Excellent!

That resolved the issue.

Thanks so much. I have never seen that happen before.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,601
Messages
5,838,281
Members
430,536
Latest member
Manoj Gaidhankar

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
Top