F
Federico
Hi all,
I need some help to figure out this problem.
I want to populate a table, let's say [PCR_Run_Details] with records from
[PCR_Run_DetailsClone] (I cloned the table to simplify this testing)
There are both used as subforms of frmPCR_Run.
I've added a checkbox field in [PCR_Run_DetailsClone] for the user to
friendly select that particular record. The idea is that a button command
triggers an AppendQuery to insert the selected records into
[PCR_Run_Details]. The problem is that I can't get the query to work since I
have a "Key violation" message.
[PCR_Run_DetailsClone]
--------------------------
IDRunDetail (Autonumber, PrimaryKey)
IDrun
Aliquot
OrigVialBC
Query:
INSERT INTO PCR_Run_Details ( IDRunDetail, IDRun, OrigVialBC, Aliquot )
SELECT PCR_Run_DetailsClone.IDRunDetail, PCR_Run_DetailsClone.IDRun,
PCR_Run_DetailsClone.OrigVialBC, PCR_Run_DetailsClone.Aliquot
FROM PCR_Run_DetailsClone;
Here I'm not even filtering by checkbox selection. When running the query,
says" you're about to add 2 records ...", which is fine, but then it reports
2 key validation error.
Any idea why this occurs? Any suggestion for copying records from one table
to another one?
I'll appreciate your help!
I need some help to figure out this problem.
I want to populate a table, let's say [PCR_Run_Details] with records from
[PCR_Run_DetailsClone] (I cloned the table to simplify this testing)
There are both used as subforms of frmPCR_Run.
I've added a checkbox field in [PCR_Run_DetailsClone] for the user to
friendly select that particular record. The idea is that a button command
triggers an AppendQuery to insert the selected records into
[PCR_Run_Details]. The problem is that I can't get the query to work since I
have a "Key violation" message.
[PCR_Run_DetailsClone]
--------------------------
IDRunDetail (Autonumber, PrimaryKey)
IDrun
Aliquot
OrigVialBC
Query:
INSERT INTO PCR_Run_Details ( IDRunDetail, IDRun, OrigVialBC, Aliquot )
SELECT PCR_Run_DetailsClone.IDRunDetail, PCR_Run_DetailsClone.IDRun,
PCR_Run_DetailsClone.OrigVialBC, PCR_Run_DetailsClone.Aliquot
FROM PCR_Run_DetailsClone;
Here I'm not even filtering by checkbox selection. When running the query,
says" you're about to add 2 records ...", which is fine, but then it reports
2 key validation error.
Any idea why this occurs? Any suggestion for copying records from one table
to another one?
I'll appreciate your help!