How to use an .mdw file in Access 2010

一笑奈何 提交于 2019-12-01 19:23:31

To open an Access database that has user-level security enabled and does not use the system default Workgroup (.mdw) file you need to launch Access with command-line arguments that specify the database to be opened and the Workgroup (.mdw) file to be used. This is usually done with a Windows shortcut whose Target: is something like...

"C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE" "C:\__tmp\zzzzz.mdb" /WRKGRP "C:\__tmp\Security.mdw"

...although the same thing can be accomplished from a batch file or similar "launcher" app.

Rachel

Instead of using a command line to access your .mdb using your original workgroup file, I actually go to the folder where the new workgroup file is, and replace it with my own. The path to the new workgroup file is: C:\users\user\AppData\Roaming\Microsoft\Access. Inside this folder, there are 3 .mdw files and I found out that system3.mdw is running when I open Access 2010. As such, I replace this file with my own workgroup file (of course, you should make a copy of the original system3.mdw before you replace it with your own). Now when I run my .mdb, the username/password dialog box will appear.

Target is ok Without the quotes (") for the .mdw and .mdb file : as

"C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE" C:__tmp\zzzzz.mdb /WRKGRP C:__tmp\Security.mdw

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