F
FrankM
I have a database with duplicate records within a Table. The ENTIRE record is
duplicate except for the Key which is an Auto Number which Access
automatically enters.
I found these directions ...
http://office.microsoft.com/en-us/assistance/HA010345581033.aspx#15
And have followed them to the letter but I keep getting the error message ...
"Could not delete from the specified tables"
My SQL looks like this ...
DELETE TABLE.*, TABLE.[Event Name], TABLE.[Event Date/Time], TABLE.[First
Name], TABLE.[Last Name], TABLE.Enrolled, TABLE.Attended, TABLE.Email,
TABLE.[Enrollment ID], TABLE.[Customer ID], TABLE.ID
FROM TABLE INNER JOIN [QUERY1] AS [Distinct] ON TABLE.ID = Distinct.FirstOfID
WHERE (((TABLE.[Event Name])=[Distinct].[Event Name]) AND ((TABLE.[Event
Date/Time])=[Distinct].[Event Date/Time]) AND ((TABLE.[First
Name])=[Distinct].[First Name]) AND ((TABLE.[Last Name])=[Distinct].[Last
Name]) AND ((TABLE.Enrolled)=[Distinct].[Enrolled]) AND
((TABLE.Attended)=[Distinct].[Attended]) AND
((TABLE.Email)=[Distinct].) AND ((TABLE.[Enrollment
ID])=[Distinct].[Enrollment ID]) AND ((TABLE.[Customer
ID])=[Distinct].[Customer ID]) AND ((TABLE.ID)<>[Distinct].[FirstOfID]));
Anyone know why this isn't working. I'm using Access 2003 and it seems like
it should work. I have no idea where I'm going wrong.
duplicate except for the Key which is an Auto Number which Access
automatically enters.
I found these directions ...
http://office.microsoft.com/en-us/assistance/HA010345581033.aspx#15
And have followed them to the letter but I keep getting the error message ...
"Could not delete from the specified tables"
My SQL looks like this ...
DELETE TABLE.*, TABLE.[Event Name], TABLE.[Event Date/Time], TABLE.[First
Name], TABLE.[Last Name], TABLE.Enrolled, TABLE.Attended, TABLE.Email,
TABLE.[Enrollment ID], TABLE.[Customer ID], TABLE.ID
FROM TABLE INNER JOIN [QUERY1] AS [Distinct] ON TABLE.ID = Distinct.FirstOfID
WHERE (((TABLE.[Event Name])=[Distinct].[Event Name]) AND ((TABLE.[Event
Date/Time])=[Distinct].[Event Date/Time]) AND ((TABLE.[First
Name])=[Distinct].[First Name]) AND ((TABLE.[Last Name])=[Distinct].[Last
Name]) AND ((TABLE.Enrolled)=[Distinct].[Enrolled]) AND
((TABLE.Attended)=[Distinct].[Attended]) AND
((TABLE.Email)=[Distinct].) AND ((TABLE.[Enrollment
ID])=[Distinct].[Enrollment ID]) AND ((TABLE.[Customer
ID])=[Distinct].[Customer ID]) AND ((TABLE.ID)<>[Distinct].[FirstOfID]));
Anyone know why this isn't working. I'm using Access 2003 and it seems like
it should work. I have no idea where I'm going wrong.