=
Adodc1.Recordset(7)
Text3
=
Adodc1.Recordset(9)
Text4
=
Adodc1.Recordset(10)
Text5
=
Adodc1.Recordset(3)然后在Textbox中修改数据后,点击"保存"按扭
执行保存command_save
click()Adodc1.Recordset(11)
=
DTPicker1.Value
Adodc1.Recordset(1)
=
Text1.Text
Adodc1.Recordset(6)
=
DTPicker2.Value
Adodc1.Recordset(7)
=
Text2.Text
Adodc1.Recordset(8)
=
Text_taobiao.Text
Adodc1.Recordset(9)
=
Text3.Text
Adodc1.Recordset.UpdateBatch
adAffectAllChapters添加new_click()Adodc1.Recordset.AddNew
Adodc1.Recordset(0)
=
Combo1.Text
Adodc1.Recordset(1)
=
Text_name.Text
Adodc1.Recordset(2)
=
Combo__kh_name.Text
Adodc1.Recordset(3)
=
Combo_xd.Text
Adodc1.Recordset(4)
=
Combo_tel.TextAdodc1.Recordset.UpdateBatch
Dim conn As ObjectSet conn = CreateObject("adodb.connection")
conn.Open "provider=Microsoft.Jet.OLEDB.4.0 Data Source=" & App.Path & "\成绩.mdb"
conn.Execute "update [高二学生] set [数学成绩]=90 where [姓名]='李明'"
conn.Close
Set conn = Nothing
MsgBox "数据已修改!"
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)