Close currently opened MsgBox using code

2019-07-02 09:58发布

Is there any option to close the currently opened MsgBox using any code in VBA access form application ? \

8条回答
成全新的幸福
2楼-- · 2019-07-02 10:51

I may be wrong but MsgBox is a blocking call creating a modal form so I don't think there is an easy way such as an option to do that. Do you have a specific use case for this ?

查看更多
对你真心纯属浪费
3楼-- · 2019-07-02 10:52

MsgBoxes are not intended to be programmatically closed, that's why it's difficult to do so. If you find yourself in a design where you must force close a MsgBox, you should probably re-evaluate your design.

查看更多
登录 后发表回答