T
TinaMWhite
In Access 2007, I am getting a key violation on an append query. I am trying
to append from one table to another table within the same database. The
destination table (Incident Log) is my main data table. The source table
(Pending Incident Log Updates) is an intermediary table for users to enter
data without accessing the main table. The idea is to review entries in the
source table (Pending Incident Log Updates), make any adjustments necessary,
and then append the destination table (Incident Log) with the adjusted
record. I will then empty (delete the records) in the source table (Pending
Incident Log Updates). The primary key of both tables is an autonumber
field, but I have tried leaving the field out of the query and still got the
error. Any assistance would be greatly appreciated. Also, please answer in
as elementary language as possible as I am still teaching myself how to use
Access. I have attached the query (in SQL) below:
This is the append query:
INSERT INTO [Incident Log] ( [Date of Incident], [Sections Involved],
[Description of Incident], Resolution, [Resolution Date], [Potential Error
Quantified], [Governing Document], [Control Objective and Activity], [Date
Modified], [Time Modified] )
SELECT [Pending Incident Log Updates].[Date of Incident], [Pending Incident
Log Updates].[Sections Involved], [Pending Incident Log Updates].[Description
of Incident], [Pending Incident Log Updates].Resolution, [Pending Incident
Log Updates].[Resolution Date], [Pending Incident Log Updates].[Potential
Error Quantified], [Pending Incident Log Updates].[Governing Document],
[Pending Incident Log Updates].[Control Objective and Activity], [Pending
Incident Log Updates].[Date Modified], [Pending Incident Log Updates].[Time
Modified]
FROM [Pending Incident Log Updates];
to append from one table to another table within the same database. The
destination table (Incident Log) is my main data table. The source table
(Pending Incident Log Updates) is an intermediary table for users to enter
data without accessing the main table. The idea is to review entries in the
source table (Pending Incident Log Updates), make any adjustments necessary,
and then append the destination table (Incident Log) with the adjusted
record. I will then empty (delete the records) in the source table (Pending
Incident Log Updates). The primary key of both tables is an autonumber
field, but I have tried leaving the field out of the query and still got the
error. Any assistance would be greatly appreciated. Also, please answer in
as elementary language as possible as I am still teaching myself how to use
Access. I have attached the query (in SQL) below:
This is the append query:
INSERT INTO [Incident Log] ( [Date of Incident], [Sections Involved],
[Description of Incident], Resolution, [Resolution Date], [Potential Error
Quantified], [Governing Document], [Control Objective and Activity], [Date
Modified], [Time Modified] )
SELECT [Pending Incident Log Updates].[Date of Incident], [Pending Incident
Log Updates].[Sections Involved], [Pending Incident Log Updates].[Description
of Incident], [Pending Incident Log Updates].Resolution, [Pending Incident
Log Updates].[Resolution Date], [Pending Incident Log Updates].[Potential
Error Quantified], [Pending Incident Log Updates].[Governing Document],
[Pending Incident Log Updates].[Control Objective and Activity], [Pending
Incident Log Updates].[Date Modified], [Pending Incident Log Updates].[Time
Modified]
FROM [Pending Incident Log Updates];