OleDbConnection conn = new OleDbConnection();
conn.ConnectionString = " Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\\My Documents\\yonghu.mdb";
conn.Open();
string strInsert = " INSERT INTO 用户和密码 ( 用户名,密码,身份证号码,家庭住址,联系电话) VALUES ( ";
strInsert += textBox1.Text + ",";
strInsert += textBox2.Text + ",";
strInsert += textBox4.Text + ",";
strInsert += textBox5.Text + ",";
strInsert += textBox6.Text + ")";
OleDbCommand inst = new OleDbCommand(strInsert, conn );
inst.ExecuteNonQuery();
conn.Close();
高手帮忙看下哪里错了咯
!!!谢谢