Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Access security.  .mdw on a network share.

Posted on 2005-03-30
Medium Priority
Last Modified: 2013-12-05
I have a question about access security.  What's the best way to impliment user level security on an access database accessed from a shared folder?

I tried creating a shortcut and placing it on the share.  Problem is the path to the msaccess.exe is different for the various clients.  So when clicking the shortcut

"C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\nt1\shared\Database - Access Data\Investors Converted.mdb" /WRKGRP "\\nt1\shared\Database - Access Data\Security.mdw"

It will not always work if if the path is different that above.

So, it tried it the other way by selecting "I want to make this my default workgroup information file" when going through the security wizard.  Problem is that it works on the one pc creating the security but all the other clients are denied permissions.  Also, this security is applied to all other access databases on this client, which is not needed.

I think I'm just not understanding the fundimentals of access security.  Any idea's?
Question by:andrewjwd
  • 2
  • 2
LVL 66

Expert Comment

by:Jim Horn
ID: 13665610
Sad to say, but the path has to be hard-coded and not a relative path.  The only other option you have would be to create each shortcut file specific to the user and their path, and give it to them.

Author Comment

ID: 13666448
That's the route I was going.  Just seems like there should be a better solution.  There's not way to make an access database associate with a .mdw?
LVL 66

Accepted Solution

Jim Horn earned 375 total points
ID: 13666480
Create a shortcut off of your Access app.  Then right-click/properties on the Shortcut.  In the Target textbox, you'll need to enter something like this:

"C:\Program Files\Microsoft Office\Office10\MSACCESS.EXE" "Drive:\folder\folder\YourAccessFile.mdb" /wrkgrp "Drive:\folder\folder\YourSecurityFile.mdw"

Three parts:
(1)  Location of MSAccess file.  The path I have is standard for XP, yours may be different.
(2)  Path-file of the Access .mdb
(3)  Path-file of the Access security .mdw file.  

Then hit Ok.  When user double-clicks on the shortcut, it will open the Access file and associate the security .mdw file with it.

Hope this helps.

Author Comment

ID: 13668806
Inefficient if you have a lot of clients.  But it'll have to do.  Thanks!

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
Beware when using the ListIndex and the Column() properties of a listbox in Access 2007.  A bug has been identified in the Access 2007 listbox code which can cause the .ListIndex property to return a -1, and the .Columns(#) property to return a NULL…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

577 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question