N
NEWER USER
I have a table with 3.2 million records. In this table are 1000 duplicates
that I found with the Find Duplicates Query in Access 2003. I want to remove
500 and leave the other 500 in tact. So, I created a Totals Query and grouped
on six fields and added another field which is an ID field(autonumber/primary
key) to get a unique field in each record and set it to First. The query
returned expected results. I saved this query as "Query16".
I then created a Delete Query and pulled down the "*" fields to the grid
from the table "Catalog" containing the records I want to delete. I also
added all seven fields from the Catalog table to the grid and set the
Criteria to the Totals query. I linked the tables on Field1.
When I View the results, i get the 500 records that I want to delete.
However, when I try to run the actual Query, I get the Error Message 3086.
Could not delete from specified table. It is not opened as read-only.
DELETE Catalog.*, Catalog.Field1, Catalog.Field7, Catalog.Field8,
Catalog.Field9, Catalog.Field10, Catalog.Field13, Catalog.ID
FROM [Catalog] INNER JOIN Query16 ON Catalog.Field1 = Query16.Field1
WHERE (((Catalog.Field1)=[Query16].[Field1]) AND
((Catalog.Field7)=[Query16].[Field7]) AND
((Catalog.Field8)=[Query16].[Field8]) AND
((Catalog.Field9)=[Query16].[Field9]) AND
((Catalog.Field10)=[Query16].[Field10]) AND
((Catalog.Field13)=[Query16].[Field13]) AND
((Catalog.ID)<>[Query16].[FirstOfID]));
Can anyone tell me why this Query will not run? Any help appreciated.
that I found with the Find Duplicates Query in Access 2003. I want to remove
500 and leave the other 500 in tact. So, I created a Totals Query and grouped
on six fields and added another field which is an ID field(autonumber/primary
key) to get a unique field in each record and set it to First. The query
returned expected results. I saved this query as "Query16".
I then created a Delete Query and pulled down the "*" fields to the grid
from the table "Catalog" containing the records I want to delete. I also
added all seven fields from the Catalog table to the grid and set the
Criteria to the Totals query. I linked the tables on Field1.
When I View the results, i get the 500 records that I want to delete.
However, when I try to run the actual Query, I get the Error Message 3086.
Could not delete from specified table. It is not opened as read-only.
DELETE Catalog.*, Catalog.Field1, Catalog.Field7, Catalog.Field8,
Catalog.Field9, Catalog.Field10, Catalog.Field13, Catalog.ID
FROM [Catalog] INNER JOIN Query16 ON Catalog.Field1 = Query16.Field1
WHERE (((Catalog.Field1)=[Query16].[Field1]) AND
((Catalog.Field7)=[Query16].[Field7]) AND
((Catalog.Field8)=[Query16].[Field8]) AND
((Catalog.Field9)=[Query16].[Field9]) AND
((Catalog.Field10)=[Query16].[Field10]) AND
((Catalog.Field13)=[Query16].[Field13]) AND
((Catalog.ID)<>[Query16].[FirstOfID]));
Can anyone tell me why this Query will not run? Any help appreciated.