OleDbConnection con = new OleDbConnection("Provider = Microsoft.Jet.OLEDB.4.0; Data Source = D:\\incomexp.mdb");
OleDbCommand com;
OleDbCommand com = new OleDbCommand("insert into incomeexp values (@year,@month,@data,@bal,@inc_exp)",con);
com.Parameters.Add("@year", OleDbType.Integer);
com.Parameters["@year"].Value = yr;
com.Parameters.Add("@month", OleDbType.Integer);
com.Parameters["@month"].Value = mn;
com.Parameters.Add("@data", OleDbType.Char);
com.Parameters["@data"].Value = s ;
com.Parameters.Add("@bal", OleDbType.Decimal );
com.Parameters["@bal"].Value = j ;
com.Parameters.Add("@inc_exp", OleDbType.Char);
com.Parameters["@inc_exp"].Value = s1 ;
con.Open();
com.ExecuteNonQuery();
con.Close();
------------------------------------------------------------------------------------
getting error message that
"Number of query values and destination fields are not the same."