Hi Allen Browne,
Thanks for the response.
Here's the SQL statement.
DELETE [tbl:Expenses - Individual].* AS tbl, [tbl:Expenses -
Individual].[Tenant ID #], [tbl:Expenses - Individual].[Item #],
[tbl:Expenses - Individual].[Date Billed], [tbl:Expenses -
Individual].Reference, [tbl:Expenses - Individual].Description, [tbl:Expenses
- Individual].Amount, [tbl:Expenses - Individual].[Date Entered]
FROM [tbl:Expenses - Individual] INNER JOIN [qry: EXPENSES - INDIVIDUAL -
DISTINCT] AS [Distinct] ON [tbl:Expenses - Individual].[Tenant ID #] =
Distinct.[Tenant ID #]
WHERE ((([tbl:Expenses - Individual].[Tenant ID #])=[Distinct].[Tenant ID
#]) AND (([tbl:Expenses - Individual].[Item #])=[Distinct].[MinOfItem #]) AND
(([tbl:Expenses - Individual].[Date Billed])=[Distinct].[Date Billed]) AND
(([tbl:Expenses - Individual].Reference)=[Distinct].[Reference]) AND
(([tbl:Expenses - Individual].Description)=[Distinct].[Description]) AND
(([tbl:Expenses - Individual].Amount)=[Distinct].[Amount]) AND
(([tbl:Expenses - Individual].[Date Entered])=[Distinct].[Date Entered]));
"Allen Browne" wrote:
> Post the SQL statement of your query.
>
> It can probably be solved by using a subquery instead of a frustrated join.
>
> --
> Allen Browne - Microsoft MVP. Perth, Western Australia
> Tips for Access users - http://allenbrowne.com/tips.html
> Reply to group, rather than allenbrowne at mvps dot org.
>
> "LongTom" <(E-Mail Removed)> wrote in message
> news:BF804A4B-6A34-47F8-A509-(E-Mail Removed)...
> >I have a form which generates records in a table on "close".
> > Every time the form is closed it generates another set of records.
> > Therefore, I end up with many duplicate records in the table.
> > I created a "Find Duplicates" query which works perfectly.
> > Then I created a "Delete Duplicate Records" query following instructions
> > from Access help by joining the table and "Find Duplicates" query on a
> > common field. Examination of the query in datasheet view show ALL the
> > correct records.
> > When I try to run the "Delete Duplicate Records" query, I get a warning
> > message "Could not delete from specified tables." error message and the
> > process stops. I am the ONLY user of the computer and software and am set
> > up
> > as administrator, so I don't think it's a permission issue on that level.
> > (I
> > am able to delete any and all records from any table in the database
> > manually.) Any suggestions, other than jumping out a window???
>
>