如何在打开 MS Access DB 时禁用宏和启动值 [英] How to disable Macro and Start-Up values while opening the MS Access DB

查看:63
本文介绍了如何在打开 MS Access DB 时禁用宏和启动值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我之前的问题标题如下:

In my previous question heading as bellow:

"如何在打开 Access DB 时避免链接表管理器消息."

我询问了如何在打开 MSAccess 数据库时禁用宏(以编程方式 vb.net),我得到了一些很好的参考和代码示例.但不幸的是我无法达到预期的结果.我尝试过 API 在运行时启用/禁用键 (SHIFT) 并以编程方式使用一些 命令行 选项,但即使没有收到任何错误,它仍然无法正常工作.

I have asked how to disable Macro (programmatically vb.net) while opening the MSAccess DB and I got some good reference and code samples to do so. But unfortunately I could not able to achieve the expected result. I have tried API to enable/disable Keys (SHIFT) at run time and also use some command-line options programmatically but still it’s not working even not getting any error as well.

问题:

  1. 我的一个 AccessDB 包含宏,它在打开数据库时调用一个表单.并且该表单有一些指向表的链接,它会创建中断询问正确的表路径并停止应用程序,直到用户干预.
  2. 另一种在打开数据库时在启动时调用窗体.它会导致在运行应用程序时打开所有表单.

我需要解决这两个问题并顺利运行应用程序.

I need to resolve both the problem and run the application smoothly.

请任何人以某种方式帮助我......

Please anyone there to help me someway....

谢谢.

推荐答案

See By Pass Shift Key Code

See By Pass Shift Key Code

此代码只是让您浏览到您选择的 mdb 数据库,并在 mdb/mde 启动期间启用或禁用 shift 键.

This code simply lets you browse to a mdb database of your choice, and enable, or disable the shift key during the startup of the mdb/mde.

在以下页面上向下走:http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html

这篇关于如何在打开 MS Access DB 时禁用宏和启动值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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