I have an append query where I am trying to take all of the attendance data which is two years old or loder, to another dbase forarchiving. This is my query:
INSERT INTO tblAttendance(EmployeeNumber, DateWeekStarting)
IN '\\Gamma\Users\Shared Accounting Files\SPIAttendanceArchive.mdb'
SELECT Att.EmployeeNumber, Att.DateWeekStarting, Att.*
FROM tblAttendance AS Att
WHERE (((Att.DateWeekStarting)>=DateAdd("y",-2,Date())))
ORDER BY Att.EmployeeNumber AND Att.DateWeekStarting;
When I run it I get this:
"Duplicate output destination'EmployeeNumber'"
This message makes no sense to me any ideas why I am getting it? How do I corect this problem? Thanks to anyone who answers this.
INSERT INTO tblAttendance(EmployeeNumber, DateWeekStarting)
IN '\\Gamma\Users\Shared Accounting Files\SPIAttendanceArchive.mdb'
SELECT Att.EmployeeNumber, Att.DateWeekStarting, Att.*
FROM tblAttendance AS Att
WHERE (((Att.DateWeekStarting)>=DateAdd("y",-2,Date())))
ORDER BY Att.EmployeeNumber AND Att.DateWeekStarting;
When I run it I get this:
"Duplicate output destination'EmployeeNumber'"
This message makes no sense to me any ideas why I am getting it? How do I corect this problem? Thanks to anyone who answers this.