简体   繁体   English

如何使用Excel VBA关闭Access对象中的错误消息?

[英]How to turn off error messages in Access object using Excel VBA?

I'm creating an Access object inside Excel VBA error handling code. 我正在Excel VBA错误处理代码内创建一个Access对象。 When an error occurs within a function in Access, I want the error handler to immediately execute, which is currently impeded by the Access VBA runtime error notification. 当Access中的函数内发生错误时,我希望错误处理程序立即执行,这在Access VBA运行时错误通知中受到了阻碍。 Is there a way to suppress that pop-up window, similar to the function of Excel's "application.displayalerts = false"? 有没有一种方法可以抑制该弹出窗口,类似于Excel的“ application.displayalerts = false”功能? Thanks 谢谢

我不确定这是否可以从Excel运行,但是可以在Access内使用“ DoCmd.SetWarnings False”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM