K
Kurt
I'd like to replace the standard delete message
("Relationships that specify cascading deletes are about
to cause X records . . . to be deleted.") with my own
message.
How can I edit the code for my Delete button to do this?
Thanks. Kurt
-----------------------------------------
Private Sub cmdDelete_Click()
On Error GoTo Err_cmdDelete_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, ,
acMenuVer70
Exit_cmdDelete_Click:
Exit Sub
Err_cmdDelete_Click:
MsgBox Err.Number & Err.Description
Resume Exit_cmdDelete_Click
End Sub
-----------------------------------------
("Relationships that specify cascading deletes are about
to cause X records . . . to be deleted.") with my own
message.
How can I edit the code for my Delete button to do this?
Thanks. Kurt
-----------------------------------------
Private Sub cmdDelete_Click()
On Error GoTo Err_cmdDelete_Click
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, ,
acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, ,
acMenuVer70
Exit_cmdDelete_Click:
Exit Sub
Err_cmdDelete_Click:
MsgBox Err.Number & Err.Description
Resume Exit_cmdDelete_Click
End Sub
-----------------------------------------