Hi
I have two tables with identical field names and field proporties -
One table has field BaptismID which is an auto number and a Primary Key, table 2 does not have this field.
I need to append table 2 to table 1
Using the query below
Code:
INSERT INTO tbl_Baptism ( ChurchId_fk, FicheNo, PageNo, BirthDate, DateOfBaptism, YearOfBaptism, FullDateOfBaptism, ChildsName, Surname, Sex, Parents, Abode, Occupation, Minister, Notes )
SELECT [Baptisms 1813-1914].ChurchId_fk, [Baptisms 1813-1914].FicheNo, [Baptisms 1813-1914].PageNo, [Baptisms 1813-1914].BirthDate, [Baptisms 1813-1914].DateOfBaptism, [Baptisms 1813-1914].YearOfBaptism, [Baptisms 1813-1914].FullDateOfBaptism, [Baptisms 1813-1914].ChildsName, [Baptisms 1813-1914].Surname, [Baptisms 1813-1914].Sex, [Baptisms 1813-1914].Parents, [Baptisms 1813-1914].Abode, [Baptisms 1813-1914].Occupation, [Baptisms 1813-1914].Minister, [Baptisms 1813-1914].Notes
FROM [Baptisms 1813-1914];
I get the error message "due to table key violations"
What have I missed? How do I trouble shoot this error?
thanks
Ian