我如何抑制:“你想插入这条记录吗”提交?
我正在填写一份 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
鉴于您的其他问题...
从代码中删除该行。
Given your other question...
Remove the line from your code.
以下是修复方法:
运行 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