3086 Error on Delete Query

86knight

New Member
Joined
Apr 14, 2010
Messages
5
I'm wondering if someone can help on this error. It must be simple. I have included the delete distinctrow code and it still does not work. Please help.
Thank you.
DELETE DISTINCTROW [Freight Manager Data].*, [Freight Manager Data].Time
FROM ([04b Updated Records - Last Entry]
RIGHT JOIN [04a Updated Records - All] ON ([04b Updated Records - Last Entry].[Order #] = [04a Updated Records - All].[Order #]) AND ([04b Updated Records - Last Entry].MaxOfTime = [04a Updated Records - All].Time))
INNER JOIN [Freight Manager Data] ON [04a Updated Records - All].[Order #] = [Freight Manager Data].[Order #]
WHERE ((([Freight Manager Data].Time)<>[04b Updated Records - Last Entry]![MaxOfTime]));
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
It looks like the query runs across 3 tables, and it also contains DISTINCTROW and summary calculations like Max.
I'm prepared to bet that the query is not editable; if not, you can't directly delete records using the query. Are you trying to delete records in all 3 tables or only one?

Denis
 
Upvote 0
Just trying to delete in "Freight Manager Data".
It works as a select but not a delete query.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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