救救我吧 可怜的人啊

来源:百度知道 编辑:UC知道 时间:2024/06/30 17:20:27
Adodc2.CommandType = 8
Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生表.mdb;Persist Security Info=False"
Adodc2.RecordSource = "insert into 班级表(班级) values('huihui')"
Adodc2.Refresh这段怎么改才正确 啊
我的世界我掌控 16:32:39

Adodc1.CommandType = 8
Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生表.mdb;Persist Security Info=False"

Adodc1.RecordSource = "select 班级表.班级 into 999 from 班级表"

还有这段啊

Adodc2.CommandType = 8
Adodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生表.mdb;Persist Security Info=False"
Adodc2.RecordSource = "select * from 班级表"
Adodc2.Refresh
adodc2.Recordset.addnew
Adodc2.Recordset.Fields("班级") = "huihui"
Adodc2.Recordset.Update
Adodc2.Refresh

插入新数据用addnew