Using Northwind I have this query
qryOrders
I have a delete query
In northwind there is referential integrity enforced between tables "Orders" and "OrdersDetail" and I have set this to allow cascading deletes.
If I manually delete from qryOrders I get the message that related records will get deleted and it works fine.
If I run the delete query I get the message "can not delete from specified table"
I thought that the delete query should run and you would just not get the warning about cascading changes. Any reason that this does not run as a delete query? Thanks
qryOrders
Code:
SELECT
[identifier] & [OrderID] AS ID,
"qryEmployees" & [EmployeeID] AS parentID,
[OrderID] & " " & [orderdate] & " " & [companyname] AS NodeText,
"qryOrders" AS identifier
FROM Customers
INNER JOIN Orders ON Customers.CustomerID = Orders.CustomerID;
I have a delete query
Code:
DELETE qryOrders.ID
FROM qryOrders
WHERE qryOrders.ID = "qryOrders10692"
In northwind there is referential integrity enforced between tables "Orders" and "OrdersDetail" and I have set this to allow cascading deletes.
If I manually delete from qryOrders I get the message that related records will get deleted and it works fine.
If I run the delete query I get the message "can not delete from specified table"
I thought that the delete query should run and you would just not get the warning about cascading changes. Any reason that this does not run as a delete query? Thanks