Article ID: 240098 - Last Review: July 16, 2004 - Revision: 1.0 ACC2000: "Could Not Delete from Specified Tables" Error Message in Delete QueryThis article was previously published under Q240098 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb). On This PageSYMPTOMS
When you run a delete query, you may receive the following error message:
Could not delete from specified tables.
CAUSE
The delete query contains multiple tables, and the UniqueRecords property is set to No.
RESOLUTION
Set the UniqueRecords property of the query to Yes. To set the UniqueRecords property of the query to Yes, follow these steps:
MORE INFORMATION
When you set the UniqueRecords property to Yes, Microsoft Access includes the DISTINCTROW predicate in the SQL statement of the query. The DISTINCTROW predicate retrieves unique records in a multi-table query where fields have only been selected from the one-sided table in the query. For example, if you add both the Customers and Orders tables to a query, but only select fields from the Customers table, the query returns multiple rows for each customer who placed multiple orders. When you set the UniqueRecords property to Yes, the query returns only one occurrence for each customer as long as that customer placed at least one order. Steps to Reproduce BehaviorCAUTION: If you follow the steps in this example, you modify the sample database Northwind.mdb. You may want to back up the Northwind.mdb file and follow these steps on a copy of the database.
Could not delete from specified tables.
| Article Translations
|
Back to the top
