Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ignore Errors in Access SQL from VB.NET?

Status
Not open for further replies.

jasonp45

Programmer
Aug 23, 2001
212
US
I am issuing a command from VB.NET to an Access table, along the lines of "Insert into [Table1] Select * from [Table2]".

This works fine. However, when I put a key constraint on Table1 so that duplication isn't allowed, I don't get an error in VB.NET, but no records get copied.

When I do this from within the Access interface I get a message box stating that not all records were carried through, but I can do the insert anyway.

How do I programmatically turn off these errors so that I can do my insert from VB.NET???

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top