What about this err.msg ??

Mischamel

Well-known member
Joined
Apr 17, 2003
Messages
91
Location
Switzerland - Rome - Darmstadt
An unhandled exception of type System.NullReferenceException occurred in commandbuilder (projectname).exe. Additional information: Value null was found where an instance of an object was required.

Code :

im INSERTCommand As New OleDbCommand(SQLStr, OleDbConnection1)

In another Sub I declared a Command, too and it works. What
 
What does your SQLStr look like. Check all the columns of the table. all the columns which do not have Allow Null against them should have some value in SQLStr.
 
Back
Top