Mrtechnicalpr
Mrtechnicalpr

Reputation: 3

OleDBException was unhandled vb.net

Not too sure what this error really means?

Exception detailed

Upvotes: 0

Views: 249

Answers (1)

rory.ap
rory.ap

Reputation: 35308

Without more information about your database schema, the error most likely means there is a foreign key relationship between the table you're trying to insert a record into -- i.e. the "foreign key" table -- and another table -- i.e. the "primary key" table. You cannot insert a record into your target table without first having an existing record in the primary key table whose primary key value is what you're trying to insert into the foreign key column in your target table.

Upvotes: 1

Related Questions