16,718
社区成员
发帖
与我相关
我的任务
分享
MyODA.SelectCommand = New OleDb.OleDbCommand(Sql, Conn)
cmdBuilder = New OleDb.OleDbCommandBuilder(MyODA)
MyODA.InsertCommand = cmdBuilder.GetInsertCommand()
MyODA.DeleteCommand = cmdBuilder.GetDeleteCommand()
MyODA.UpdateCommand = cmdBuilder.GetUpdateCommand()
MyODA.Fill(MyDs)
'---------更新子过程---------------------------------
myDataView.DataSource = MyDs.Tables(0)
If MyDs.HasChanges Then
MyODA.Update(MyDs.Tables(0))
End If