色婷婷狠狠18禁久久YY,CHINESE性内射高清国产,国产女人18毛片水真多1,国产AV在线观看

ACCESS數據庫清空

劉柏宏2年前19瀏覽0評論

ACCESS數據庫清空?

窗體上畫一command,數據庫為a ,表名為b

Private Sub Command1_Click()

Dim msgQk

msgQk = MsgBox("清空數據庫將清除所有數據!", 32 + vbOKCancel, "請選擇")

If msgQk = 1 Then

Dim cnDel As New ADODB.Connection

Dim rDel As New ADODB.Recordset

Dim sqlDel1 As String

cnDel.Open "DBQ=" & App.Path & "\a.mdb;Driver={Microsoft Access Driver (*.mdb)};"

sqlDel1 = "delete * from b"

cnDel.Execute sqlDel1

MsgBox "數據庫清空完成!", 32, "完成"

cndel.close

End If

End Sub