|
我写了一个窗体,执行多条查询,每次都要询问,有没有一种方法让它询问的时候自动选“是”,或者干脆不弹窗
代码如下:
Private Sub Command0_Click()
On Error GoTo Err_Command0_Click
Dim stDocName As String
stDocName = "更新查询 INTEL HD gfx DT-1"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "更新查询 INTEL HD gfx DT-2"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "更新查询 INTEL HD gfx DT-3"
DoCmd.OpenQuery stDocName, acNormal, acEdit
stDocName = "更新查询 INTEL HD gfx DT-4"
DoCmd.OpenQuery stDocName, acNormal, acEdit
Exit_Command0_Click:
Exit Sub
Err_Command0_Click:
MsgBox Err.Description
Resume Exit_Command0_Click
End Sub
|
|