sambrierley
Registered User.
- Local time
- Today, 11:37
- Joined
- Apr 24, 2014
- Messages
- 56
hi all,
im trying to insert into a table all records with the duplicates removed but im getting the above error.
basically the tables are exactly the same, the only field im not selecting from the Export table is the ID column as this obviously wont be duplicated.
id appreciate if someone could show me where im going wrong.
im trying to insert into a table all records with the duplicates removed but im getting the above error.
Code:
Str = "INSERT INTO [Export Table_Dupes]" & _
"SELECT DISTINCT [Alpha Name], [Employee Number], [Work Date], [Account Number], [Explanation], [Sub- Ledger], [Pay Code], [Billing Rate], " & _
"[Hours], [Week No], [Timesheet Identifier], [Week Ending], Comments, Approver, Timestamp, [Home BU] " & _
"FROM [Export Table]"
basically the tables are exactly the same, the only field im not selecting from the Export table is the ID column as this obviously wont be duplicated.
id appreciate if someone could show me where im going wrong.