MSHFlexGrid表格數(shù)據(jù)修改后保存到數(shù)據(jù)庫?
Dim cnDel As New ADODB.Connection '---------------刪除舊數(shù)據(jù)庫1-1
Dim rDel As New ADODB.Recordset
Dim sqlDel1 As String
cnDel.Open "DBQ=" & App.Path & "\data\data.mdb;Driver={Microsoft Access Driver (*.mdb)};"
sqlDel1 = "delete * from data1"
cnDel.Execute sqlDel1
cnDel.Close '---------------刪除舊數(shù)據(jù)庫1-1