Disabling msgbox in access

I am trying to make a small form in MS Access 2003 Service Pack 3 (SP3), I am using some function that some other people have done, and this function has msgbox. I want to disable msgbox while I run the form. Is it possible to disable msgbox in access?

+3
source share
4 answers

I created my function called msgbox. It seems to work. Thank you all for your help.

Public Function MsgBox(Prompt, Optional Buttons As VbMsgBoxStyle = vbOKOnly, Optional Title, Optional HelpFile, Optional Context) As VbMsgBoxResult

If myProcedureisRunning then 
    VBA.MsgBox Prompt
else
    debug.print prompt
endif
End Function
+3
source

VBA, . , Access, , , DoCmd.SetWarnings False, . , , , . Access " ".

+2

CTRL-F MSGBOX . , .

0

Alt + F11, Visual Basic IDE, CTRL + F .

msgbox
, ""
'msgbox
in the field "replace with" (note the apostrophe). This will comment on all msgbox statements in the project.
0
source

Source: https://habr.com/ru/post/1705131/


All Articles