djswitters
Technical User
My apologies in advance as I know similar questions have been asked, but I can't figure this out based on other threads:
I have two joined tables that need to be archived (appended) monthly. For illustration, call them Parent and Child. Parent's PK is an Autonumber, which is joined in a one-to-many with Child (the joined field in the Child table is a number field called RecordID, long integer format).
I'm using two append queries to move the Parent and Child data separatly to tables called ParentArch and ChildArch, respectively. ParentArch table and Child Arch table are also joined as a one-to-many with an Autonumber for ParentArch's PK (joined to a long integer number field RecordID in the ChildArch table).
I get a key violation error message when I run the Child table append query (but of course I always run the Parent append first, the Child append second). I don't have the Autonumber field from Parent included in the append query for the Parent table data; but I must be missing something else. Are the table relationships creating the problem? Any advice is greatly appreciated.
Thanks!
I have two joined tables that need to be archived (appended) monthly. For illustration, call them Parent and Child. Parent's PK is an Autonumber, which is joined in a one-to-many with Child (the joined field in the Child table is a number field called RecordID, long integer format).
I'm using two append queries to move the Parent and Child data separatly to tables called ParentArch and ChildArch, respectively. ParentArch table and Child Arch table are also joined as a one-to-many with an Autonumber for ParentArch's PK (joined to a long integer number field RecordID in the ChildArch table).
I get a key violation error message when I run the Child table append query (but of course I always run the Parent append first, the Child append second). I don't have the Autonumber field from Parent included in the append query for the Parent table data; but I must be missing something else. Are the table relationships creating the problem? Any advice is greatly appreciated.
Thanks!