please solve my problem .i got syntex erro4sert4date statement in c# with database
my coding is
OleDbCommand cmd=new OleDbCommand ();
cmd.CommandType =CommandType.Te xt ;
cmd.CommandText ="insert into kount(Id,Name of supervisor,Name of counting asst,Name of micro observer) values('"+txtid .Text +"','"+txtsuper visor.Text +"','"+txtasst. Text+"','"+txto bserver.Text +"')";
cmd.Connection =con;
con.Open ();
cmd.ExecuteNonQ uery ();
con.Close ();
my coding is
OleDbCommand cmd=new OleDbCommand ();
cmd.CommandType =CommandType.Te xt ;
cmd.CommandText ="insert into kount(Id,Name of supervisor,Name of counting asst,Name of micro observer) values('"+txtid .Text +"','"+txtsuper visor.Text +"','"+txtasst. Text+"','"+txto bserver.Text +"')";
cmd.Connection =con;
con.Open ();
cmd.ExecuteNonQ uery ();
con.Close ();
Comment