Hi
I have two table which appear to be identical in format.
Both have a key field called BaptismID
I need to append from table 2 into table 1
I set up an append query by creating the query using table 2 and then selecting the append button and selecting as a destination table 1
Code:
INSERT INTO tbl_Baptism ( ChurchID_fk, FicheNo, BirthDate, DateOfBaptism, YearOfBaptism, FullDateOfBaptism, ChildsName, Surname, Sex, Parents, Abode, Occupation, RefNo, PageNo, EntryNo, Minister, Notes )
SELECT tbl_Baptism1.ChurchID_fk, tbl_Baptism1.FicheNo, tbl_Baptism1.BirthDate, tbl_Baptism1.DateOfBaptism, tbl_Baptism1.YearOfBaptism, tbl_Baptism1.FullDateOfBaptism, tbl_Baptism1.ChildsName, tbl_Baptism1.Surname, tbl_Baptism1.Sex, tbl_Baptism1.Parents, tbl_Baptism1.Abode, tbl_Baptism1.Occupation, tbl_Baptism1.RefNo, tbl_Baptism1.PageNo, tbl_Baptism1.EntryNo, tbl_Baptism1.Minister, tbl_Baptism1.Notes
FROM tbl_Baptism1;
When I run is I get a key violation error but the only key I can see is one the field BaptismID which I have not includes in the query
Am I missing some thing
thanks
IanDatabase2.zip