G
Guest
Hello.
I have a button in a menu which is meant to delete record currently
displayed in a form. When I click it, it shows a message window asking user
weather he wants to delete a record. If the user clicks "No", this message is
shown.
I've already found the answer to this question, but it seems that it works
only for buttons that are on the form itself, not in case button is in a menu.
The function which that button is linked to is as follows:
Function menu_delete()
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End Function
DoCmd.SetWarnings commands does not solve this problem.
Can anybody help?
I have a button in a menu which is meant to delete record currently
displayed in a form. When I click it, it shows a message window asking user
weather he wants to delete a record. If the user clicks "No", this message is
shown.
I've already found the answer to this question, but it seems that it works
only for buttons that are on the form itself, not in case button is in a menu.
The function which that button is linked to is as follows:
Function menu_delete()
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
End Function
DoCmd.SetWarnings commands does not solve this problem.
Can anybody help?