using System.Data.OleDb; OleDbConnection connection = new OleDbConnection(); connection.ConnectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\ABC\db.mdb;"; connection.Open(); OleDbCommand cmd = new OleDbCommand("INSERT into TaxSale(CauseNumber,Address)Values(@CauseNumber,@Address)", connection); cmd.Parameters.Add("@CauseNumber", OleDbType.VarChar).Value = _CollectValue[0]; cmd.Parameters.Add("@Address", OleDbType.VarChar).Value = _CollectValue[1]; cmd.ExecuteNonQuery(); connection.Close();
"InvalidOperationException was unhandled and An unhandled exception of type 'System.InvalidOperationException' occurred in System.Data.dll"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)