Hi,
I'm trying to insert new datas to an existing table. What I learn from a
C# book, all I need to do is write a method
private void adepartment ()
{
// specify new department code to insert in database
objadep.Parameters["DEPT_CODE"].Value = textBox1.Text;
oleDbConnection1.Open();
objadep.ExecuteNonQuery(); --> generate this error: An unhandled
exception of type 'System.Data.OleDb.OleDbException' occured in
system.data.dll
oleDbConnection1.Close();
}
Can someone explain what this error means and how should I do?
Cheers!
Claudi
*** Sent via Developersdex
http://www.developersdex.com ***