Solved

MS Access error

Posted on 2013-11-12
5
208 Views
Last Modified: 2013-11-24
Situation: an Access 2007 back end database is housed on a web server that is in a DMZ.  It has to be there so a public web page can access it.  Company users who also access it via linked tables each have their own Access front end, some 2010, others 2007.\

Because the back end is in a DMZ, Windows authentication won't work when setting permissions to the directory. We get around this by using a batch file that runs this script to authenticate users:

net use \\webServer\IPC$ /u:webServer\AccessAppUsers passWord

Then a script runs that opens the user's Access front end.

Problem: A few users can open the front end with no problem at the same time.  The rest, regardless of Access version, get this:

The Microsoft Office Access database engine cannot open or write to the file "filename".  It is already opened exclusively by anothere user, or you need permission to view adn write its data.

Our network person tells me the web server would see all users connecting this way the same so directory permissions shouldn't be a issue.

Any ideas why this happens?

Thanks,

McLeanIS
0
Comment
Question by:McLeanIS
  • 3
  • 2
5 Comments
 
LVL 57
ID: 39642772
Well now I know why you have a backend in a DMZ.

 Every user needs full read, write, and delete privs for the directory where the DB resides.

 If not, and the first user in does not, then the DB is opened exclusive regardless of settings.

 This includes the account used by the web site, which is a user.

 So your issue boils down to security and is not an Access question per say.   I would double check this is the problem for sure by:

1. Having the user execute the script.
2. Then try:

a. Creating a text file in the directory.
b. Edit the text file and save it.
c. Delete the text file.

 Each user should be able to perform that test without error.

Jim.
0
 
LVL 57
ID: 39642791
and by the way, rather then simply accepting an answer in the other question, you should have stuck with it and made additional comments explaining the situation.

Jim.
0
 
LVL 57
ID: 39642844
I would also not use the ICP$ share, but create a new hidden share.

Make sure the share permissions are set for everyone and full control and that webServer\AccessAppUsers has full privs for the directory.

Jim.
0
 

Accepted Solution

by:
McLeanIS earned 0 total points
ID: 39659747
Due to time constraints, we decided to move the back end database out of the DMZ as a short term fix.  This allowed us to use Windows authentication.  This system needs to be redesigned.  Thank you for the input.  It will help us with coming projects involving the DMZ.

McLean IS
0
 

Author Closing Comment

by:McLeanIS
ID: 39672362
We chose not to spend time testing permissions on files in the DMZ and use a short term fix since we decided parts of this system need redesiging.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

This article will show you how to use shortcut menus in the Access run-time environment.
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

856 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