我如何抑制:“你想插入这条记录吗”提交?

发布于 2024-09-11 12:22:48 字数 148 浏览 1 评论 0原文

我正在填写一份 Word 文档表格,该表格将发布到访问数据库。

有谁知道是否有办法抑制消息“您想插入此记录吗”???

raj提到这可以手动执行,取消选中ACTION QUERIES,但我可以通过编程方式执行此操作/????

i am filling out a form on a word document which posts to access database,.

does anyone know if there a way to suppress the message "do you want to insert this record"???

raj mentioned that this is possible to do manually, uncheck ACTION QUERIES, but can i do this programmatically/????

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

街角卖回忆 2024-09-18 12:22:48

鉴于您的其他问题...

从代码中删除该行。

Given your other question...

Remove the line from your code.

眼前雾蒙蒙 2024-09-18 12:22:48

以下是修复方法:

运行 MS Access 打开数据库。在菜单中的“工具/选项”下,取消选中“操作查询”复选框。

这是特定于机器的(不是特定于数据库的)。

这可以通过 VBA 实现,但仅限于当前正在运行的实例。您可以执行 DoCmd.SetWarnings FALSE


哈哈...

在您提到的“其他问题”中,您在代码

bytContinue = MsgBox("您想插入此记录吗? ", vbYesNo, "添加记录")

只需将该行替换为

bytContinue = vbYes

Here is how to fix it

Run MS Access open a database. In the menu, under Tools / Options, uncheck the check-box for ACTION QUERIES.

This is machine specific (not database specific).

This is possible through VBA but only for the current running instance. You can do DoCmd.SetWarnings FALSE


LOL...

In your "other question" referred to, you are asking this question in code

bytContinue = MsgBox("Do you want to insert this record?", vbYesNo, "Add Record")

Just replace that line with

bytContinue = vbYes

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文