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!
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!