下列代码:
Private Sub DBGrid1_BeforeDelete(Cancel As Integer)
If MsgBox("真的要删除此记录吗?", vbOKCancel + vbExclamation) = vbCancel Then
Cancel = True
End If
End Sub当取消删除时,出现系统给出的对话框提示:
“该操作被关联对象取消。”如何使这个多余的提示不出现?