Not sure if this is the best way to do this, so maybe somebody has other suggestions...
I'm trying to run an Append query in an Access 97 database. If I run the query through Access itself, it tells me how many records will not be copied due to primary key duplications, etc., but it will ask if I want to continue with the action query. If I say "yes" then it copies all the unique records.
If I run the query thru VB, it gives a run-time error with close to the same text (primary key violations, etc.) The program then crashes. No records are copied.
Is there a way to force the append query to continue? If not, should I use another means of copying unique records to a different table? (i.e. ADO recordsets).
Thanks for any help.
I'm trying to run an Append query in an Access 97 database. If I run the query through Access itself, it tells me how many records will not be copied due to primary key duplications, etc., but it will ask if I want to continue with the action query. If I say "yes" then it copies all the unique records.
If I run the query thru VB, it gives a run-time error with close to the same text (primary key violations, etc.) The program then crashes. No records are copied.
Is there a way to force the append query to continue? If not, should I use another means of copying unique records to a different table? (i.e. ADO recordsets).
Thanks for any help.