S
Song
Private Sub cmdDel_Click()
On Error Resume Next
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
If Err = 2501 Then Err.Clear 'user canceled
End Sub
It gives me two confirmation: How to suppress 2nd confirmation?
1. Are you sure you want to delete this record? (when I click Yes, it gives
me following)
2. You are about to delete 1 record(s). If you click Yes, you won't be able
to undo this delete operation. Are you sure you want to delete hese records?
I only want 1st confirmation, not 2nd. Thanks.
On Error Resume Next
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
If Err = 2501 Then Err.Clear 'user canceled
End Sub
It gives me two confirmation: How to suppress 2nd confirmation?
1. Are you sure you want to delete this record? (when I click Yes, it gives
me following)
2. You are about to delete 1 record(s). If you click Yes, you won't be able
to undo this delete operation. Are you sure you want to delete hese records?
I only want 1st confirmation, not 2nd. Thanks.