A family of Microsoft relational database management systems designed for ease of use.
My real question was, iss there a way to see what records created a query error without the additional digging, regardless of the type of error that is occurring?
You'd have to do it yourself by writing a query which returns the rows which will violate the key/index, but in the case of 'duplicates' this won't tell you which rows will be rejected, only which are duplicates, one of which will be appended.
Another way would be to append the rows one by one by iterating through a recordset and executing an SQL statement which INSERTs one row INTO the table for each row in the recordset. You can trap the error by use of the dbFailOnError option of the Execute method and set up the error handler to tell you which row is being rejected and why. In the case of duplicates, as one will be successfully appended, the error will be raised on the subsequent rows which duplicate a successfully appended row. The successfully appended row from a set of duplicates may not be the same as that appended by a single append query; it will depend on the what the recordset is ORDERed BY.