数据库添加数据
string s = "Provider = Microsoft.Jet.OLEDB.4.0;DataSource=F:\\mdb\\Specialty.mdb";OleDbConnection conn = new OleDbConnection(s);
conn.Open();
string s2 = "Insert Into SpecialtyInfo (SpecialtyName,Remark)Values('";
s2 += textBox1.Text.Trim() + "','";
s2 += richTextBox1.Text.Trim() + "')";
OleDbCommand cmd =new OleDbCommand (s2,conn );
cmd.ExecuteNonQuery();
textBox1.Clear();
richTextBox1.Clear();
调试报错:找不到课课安装的ISMA。
请问下为什么啊???