Hi Tom,
As others have said, this is a matter of network permissions rather than
anything to do with Access. If you have a good network administrator
s/he will know whether it's possible and if so how; I guess it might
involve putting the database users in an AD/NT group that can read files
in the folder (otherwise Access won't be able to open them) but cannot
browse the folder (hence cannot see the files to open them from Word or
Windows Explorer).
If that's not possible, things could get hairy. Possibly you could have
to have Access, running under the user's account, launch and automate an
instance of Word running under a different account. See
http://support.microsoft.com/kb/288367/EN-US/ for details. However, I'm
not sure this would do the job.I get the impression that the setup
process described in this article would mean that any time Word was
launched on the workstation it would run under the different account -
which means that users *would* be able to open the verboten files from
an interactive Word session.
Alternative approaches might include:
-Forget about securing the folder. Instead, password-protect the Word
documents and have the Access application know the password but not the
users.
-Don't store the documents on the network at all. Either keep the
contents of each .doc file in a secure database (e.g. SQL Server) and
write it to a temporary folder just before they're needed for
automation, or else write VBA code that automates Word to construct each
document on the fly when needed, using information stored in database
tables.
On Sun, 30 Jan 2005 00:10:42 GMT, "Tom" <tm*****@nospam.please> wrote:
Can anyone give me any advice on how to secure a folder on a network server
so that documents in the folder can only be opened through an Access
database or by the database admin. I need to store MS Word docs in a folder
on a network server. The database admin will save the docs to the folder.
The docs must be available to Word automation out of a specific Access
database and available to the database admin out of MS Word. Only users of
the database must be able to get to the docs from the database and no one
other than the database admin must be able to get to the docs from MS Word.
Access to the folder via Internet Explorer must be blocked to everyone
except perhaps the database admin.
Thanks to all who can help!
Tom
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.