How to disable Macro and Start-Up values while opening the MS Access DB

穿精又带淫゛_ 提交于 2021-02-08 09:33:30

问题


In my previous question heading as bellow:

"How to avoid Linked Table manager message while opening the Access DB."

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.

Problem:

  1. One of my AccessDB contains Macro and it calls a form while opening the DB. And the form has some link to Tables and it creates interrupt asking proper path to the table and halts the application till the user intervention.
  2. Other one calls form in start-up while opening the DB. It causes opening of all the forms while running the Application.

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

Please anyone there to help me someway....

Thank you.


回答1:


See By Pass Shift Key Code

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.

Down a ways on the following page: http://www.members.shaw.ca/AlbertKallal/msaccess/msaccess.html




回答2:


On one of the MS support pages I found a reference to the /nostartup switch. Can you try to add that to your startup command?



来源:https://stackoverflow.com/questions/684774/how-to-disable-macro-and-start-up-values-while-opening-the-ms-access-db

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!