Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine the .mdw that a db is set to

Status
Not open for further replies.

vb6novice

Programmer
Sep 23, 2002
288
US
Is there a way in Access 97 to open a database and determine what .mdw file the database is using for security settings?

 
use in the debug window
?dbengine.systemdb
--Jim
 
It would be using whichever MDW file is pointed to in the shortcut, e.g. if the target in the shortcut is....

"C:\Program Files\Office97\Office\MSACCESS.EXE" "C:\Projects\AppDev.mdb" /wrkgrp "C:\Projects\MySystem.mdw"

.... it is using MySystem.mdw in the "C:\Projects" directory.

If "/wrkgrp" isn't specified, it would use the default System.mdw file.
 
...but remember, the 'default' .mdw file isn't necessarily 'system.mdw', it could be anything chosen in the last running of the wrkgadm program.
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top