Dim strMyTable As String
Dim strMyField As String
Dim strMyCombo As Boolean
Dim strSQL As String
strMyTable = "ItemDetails" '(or whatever the true names are...)
strMyField = "Chk"
strMyCombo = False
strSQL = "UPDATE " & strMyTable _ & "SET " & strMyField & "=" & strMyCombo & ";"
Application.CurrentDb.Execute strSQL
End Sub
答案 0 :(得分:0)
试试这个:
Dim strMyTable As String
Dim strMyField As String
Dim strMyCombo As String
Dim strSQL As String
strMyTable = "ItemDetails" '(or whatever the true names are...)
strMyField = "Chk"
strMyCombo = "False"
strSQL = "UPDATE " & strMyTable & " SET " & strMyField & "=" & strMyCombo & ";"
Application.CurrentDb.Execute strSQL