Avoid msgbox when deleting

johndoomed

VBA idiot
Local time
Today, 13:22
Joined
Nov 4, 2004
Messages
174
This question has probably been asked before, but I can’t seem to find it. So here it goes:

Is there a way to avoid those “you are about to delete a post” msg boxes?

My code:
PHP:
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
 
Use following code before :

docmd.setwarning false

And after:

docmd.setwarning true
 
Also, DoMenuItem commands are considered obsolete.

Try and use RunCommand equilivant.
 
Btw: If anyone reads this later on, it is Docmd.setwarnings false/true. Not Docmd.setwarning false/ture.

("s" missing)
 

Users who are viewing this thread

Back
Top Bottom