转发远程BE表时,抑制宏警告消息 [英] suppress macro warning msgs when tranferring remote BE tables

查看:62
本文介绍了转发远程BE表时,抑制宏警告消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当通过DoCmd.TransferDatabase更改位于网络上的BE数据库的路径时,是否有办法抑制出现的宏警告消息?我有14张桌子,并且有14条警告信息连续出现,每次转移一次。


一如既往地谢谢你。


Tux

When changing paths to a BE db located on a network via DoCmd.TransferDatabase is there a way to suppress the macro warning messages that appear? I have 14 tables, and 14 warning messages appear in succession one for EACH transfer.

Thanks as always :)

Tux

推荐答案

您可以使用以下命令禁用/启用警告。完成传输数据库后,请确保在代码中重新启用警告。

You can disable / enable warning with the following. Just make sure that you re-enable warnings in your code after you finish with the transferdatabase.

展开 | 选择 | Wrap | 行号


这是相对安全的,因为它只禁用警告消息而不是更严重的错误消息。当然,在返回默认状态后仍然很重要,但无需担心您可能会错过代码中的错误。
This is relatively safe as it only disables warning messages and not the more serious error messages. Still important to return to default state afterwards of course, but no need to worry that you may miss bugs in your code with this set.


感谢您的快速回复。


这篇关于转发远程BE表时,抑制宏警告消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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