Here is the code I am not sure I entered you suggestions in the right place
Private Sub Delete_Records_Click()
On Error GoTo Err_Delete_Records_Click
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
Exit_Delete_Records_Click:
DoCmd.SetWarnings True
Exit Sub
Err_Delete_Records_Click:
MsgBox Err.Description
Resume Exit_Delete_Records_Click
End Sub