Private Sub 命令26_Click()
On Error Resume Next
DoCmd.RunCommand acCmdDeleteRecord
End Sub
Private Sub 命令26_beforedelconfirm(Cancel As Integer, Response As Integer)
If MsgBox("是否确定删除?", 32, "删除提示") = 7 Then '按下否按钮
Cancel = True '中止删除
Else: Me![删除] = Yes
End If
Response = acDataErrContinue
End Sub
Private Sub 命令26_afterdelconfirm(status As Integer)
If status = acDeleteOK Then
Me![品号].Requery
End If
End Sub