Handle Unique Contraint During Buld Inserts

E

EWill

I have several thousand records that I am inserting into an Access
table, which has a unique constraint on one of the fields. Currently
when a duplicate record is found the insert aborts and the error msg
is displayed (via my ErrorHandler).

How can I continue processing if when a duplicate value insert is
attempted.
When inserting 1000 records if 3 are dupliates I would like to go
ahead and insert the 997 non duplicate records. (Note I can not
remove the contraint from the table..)

And Code examples would be greatly appreciated .....


Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top