I have a single table with 7 columns, one which can be null.
When I run the following:
I get the error "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
Even if I set the field in the .xls file to something still the error appears.
Even if I set the entire table to to allow null in all fields I get the error.
The table has be deleted and recreated and has no link to any other table so I cannot see where it is falling over?
Help any one?
When I run the following:
VB.NET:
da = New System.Data.OleDb.OleDbDataAdapter("select [PO No] as po_no, [Part No] as part_no, " & _
"description, vendor, pr, [Order Date] as registered_date, " & _
"Ordered from [sheet1$]", cnn)
' load into import table
da.Fill(ds.POImports)
I get the error "Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
Even if I set the field in the .xls file to something still the error appears.
Even if I set the entire table to to allow null in all fields I get the error.
The table has be deleted and recreated and has no link to any other table so I cannot see where it is falling over?
Help any one?