简体   繁体   中英

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

I'm creating an Access object inside Excel VBA error handling code. 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. Is there a way to suppress that pop-up window, similar to the function of Excel's "application.displayalerts = false"? Thanks

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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