knuckelhead
Technical User
I have an icon on my form to delete a form if I need to.
Below is what someone wrote for me a long time ago.
I want to add a question before deleting the record. Like "Are you sure you want to delete this record?"
while you review the vba code below, I am open to improving it too. I do not know how to read it.
thanks. Knucklehead
=====================================
Private Sub DeleteRecord_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End Sub
======================================
Below is what someone wrote for me a long time ago.
I want to add a question before deleting the record. Like "Are you sure you want to delete this record?"
while you review the vba code below, I am open to improving it too. I do not know how to read it.
thanks. Knucklehead
=====================================
Private Sub DeleteRecord_Click()
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End Sub
======================================