[SOLVED] Microsoft Access Didn't Add Records Due To Key Violations
Hello,
I have a table called tblTarget, with 3 fields: Autonumber ID, Number F1, Number F2. F1 and F2 are indexed, allow duplicates, and are not required.
I'm trying create an append query. SQL code is the following:
-onerow is a dummy table.
When I run the query, I receive the error in the title: Microsoft Access Didn't Add 1 Record(s) Due To Key Violations.
I've tried many syntaxes for the query, they all supposedly work, but they lead to this error.
For any questions or requests, I'm here. Thank you for your time.
EDIT: Problem solved, solution in my last comment
Hello,
I have a table called tblTarget, with 3 fields: Autonumber ID, Number F1, Number F2. F1 and F2 are indexed, allow duplicates, and are not required.
I'm trying create an append query. SQL code is the following:
Code:
Insert into tblTarget
SELECT *
FROM (
Select 1 as F1, 1 as F2 from onerow)
When I run the query, I receive the error in the title: Microsoft Access Didn't Add 1 Record(s) Due To Key Violations.
I've tried many syntaxes for the query, they all supposedly work, but they lead to this error.
For any questions or requests, I'm here. Thank you for your time.
EDIT: Problem solved, solution in my last comment
Last edited: