我正在尝试运行删除查询
DELETE tblInventory.ProductNo, tblInventory.Vendor
FROM tblInventory
WHERE (((tblInventory.Vendor) Like "*barshop*"));
我收到以下错误消息。
CaseTracker 无法删除删除查询中的 1 条记录,因为键违规 0 条记录,因为锁违规。
我需要做什么才能使查询运行?
我正在尝试运行删除查询
DELETE tblInventory.ProductNo, tblInventory.Vendor
FROM tblInventory
WHERE (((tblInventory.Vendor) Like "*barshop*"));
我收到以下错误消息。
CaseTracker 无法删除删除查询中的 1 条记录,因为键违规 0 条记录,因为锁违规。
我需要做什么才能使查询运行?
I may try something like this:
DELETE
FROM tblInventory
WHERE tblInventory.Vendor LIKE '%barshop%'
That's the case if you're using SQL Server. Not sure that runs on MS-Access DB
In the DELETE statement you are deleting a complete record that matches your WHERE statement, so you don't need to put columns like in a SELECT statement.
Hope it helps.