Access VBA:如何打开系统消息或提示? [英] Access vba: How to turn of systems messages or prompts?

查看:86
本文介绍了Access VBA:如何打开系统消息或提示?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用窗体在Access中的数据库上运行一些代码.在更新或删除过程中,Access询问您是否要更新或删除.

I use a form to run a few codes on a database in Access. During update or deletion Access asks whether you want to update or delete.

我想知道是否有任何方法可以关闭这些系统消息,或者让用户根据自己的喜好选择是否弹出这些消息.

I would like to know if there is any way of turning off these system messages or let the user choose his preference on whether he would like thoses messages to pop up or not.

推荐答案

不要再将其重新打开.

DoCmd.SetWarnings false
DoCmd.SetWarnings true

Application.DisplayAlerts = false
Application.DisplayAlerts = true

这篇关于Access VBA:如何打开系统消息或提示?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆