Jennifer said:
Hello,
I am going through the same thing. I am reading the FAQ
now and don't see (yet) how to force the user to use my
MDW file that is created. So, I would also appreciate
further assistance in this.
When a user opens Access with a MDW file that does not prompt for a login then
they are logging in silently as the user "Admin" and as a member of the default
group "Users". If your application does not give permissions to the Admin user
and the Users group, then they will not be able to open it.
A common missed step is to not make sure that Admin is not the owner of the
database or any objects. Owners are given privileges even if they have no
permissions otherwise.
Also, how is this MDW file associated with JUST this
access database (or will that occur when I force for that
particular mdw file to be used when opening that one DB).
The relationship between MDW and MDB file is a bit more detached than that. You
always run Access in a workgroup environment. All that environment does is
establish who the login user is and what groups he has membership in within the
workgroup file. Access (at this point) does not care what file you might or
might not attempt to open. This is why joining a workgroup that has a password
applied to the "Admin" user causes you to always get a login prompt. The MDW
being used for the session of Access is what determines whether you get a login
prompt, not the file you might attempt to open.
Now...once the session is started and the file is being opened, Access looks at
the permissions stored "in that file". Access already knows at this point what
the login UserName is and what groups that user is a member of. It now compares
that to the permissions stored in the MDB to see if the current user has
authority to open the file and then (if let in) to every object being interacted
with.
It is typical however to want to use a secure MDW file "just for this one
particular MDB file" while not being bothered with a login prompt for other
files. The way to do that is leave users joined to the default non-secure MDW
file and then create a shortcut that specifies a different MDW file as a command
line argument to open the secure MDB. The syntax is roughly...
"Path to MSAccess.exe" "Path to MDB" /wrkgrp "Path to MDW"