Private Sub 退出_Click()
On Error GoTo Err_退出_Click
If IsNull(Me![备注]) = True And 结果 <> "成功" Then
MsgBox "由于结果不等于成功,请在备注相关信息", vbOKOnly, "系统提示!!!"
备注.Enabled = True
Exit Sub
End If
DoCmd.Close
Exit_退出_Click:
Exit Sub
Err_退出_Click:
MsgBox Err.Description
Resume Exit_退出_Click
End Sub