Network Nightmare

cgmckenzie

Registered User.
Local time
Today, 13:06
Joined
Oct 21, 2002
Messages
38
I have a simple database I stick in the my shared documents folder so 2 other people can use it and the the forms and everything else works as long as only one person uses it. if another person tries to open the same for it gives me that stupid Could not lock onto Database error. The default setting is for shared and i have went over everything i know so any help would be appreciated, Thanks Chris Mckenzie
 
In relational databases (on which concept Access is built), there's a mechanism called locking.

This mechanism prevents databases becoming corrupt when differnt users are trying to modify the same data.

Meaning your problem isn't acually a flawn...
Split your database in a frontend and a backend or activate recordlocking on a record.
You can set recordlocking by:

- opening your Acces file
- choose Extra -> Options => Advanced

See also Access Help, it describes rather good recordlocking in Access.

RV
 
network

I have changed the Record setting to all three choices and still get the same message. Could not lock to table because it is in use by another person. I have changed the setting to shared and not exclusive and still get the same thing. More than one person should be able to open the same form at the same time. thanks for your help. Chris
 
Which network o/s are you using? Windows NT et all tend to default to minimum security, whereas Netware defaults to maximum.

If you are using Netware, you need to be sure that users have read, write and create permissions, otherwise the .ldb locking file can't be created. I think you also have to set the file properties of your .mdb to shared under Netware, too.
 
I am using windows xp and the Access2000, I just took the db and set in the network folder for shared documents on my computer. When you open the database a file is created with a lock on it. I quess its the locking file. Dont let me come off the wrong way i really appreciate the help i just am so pissed, this should not even be an issue, but know it is a serious problem.
 
The fact that you are using XP on your machine does not dictate what the network OS is, although it's unlikely that you are using Netware and don't know about it.

You need to check the permissions on the folder where your db is. I haven't used XP, but you should be able to right click the folder icon and see the permissions.

Have you applied all the upgrades to Access2k? It's very buggy and you need SP3 to get a bit of stability, as I have found!
 
I don't think your problem is simply locking the file. It is the way in which the locking is implemented.

If you don't implement Workgroup security, then you and all of your users by default come in as user "Admin" - for which one of the default permissions is "Open Exclusive" for the database. If the database is opened directly by clicking on the file icon, you might be running into this mechanism.

The correct way to do this is to create a new workgroup file and require your sharers to join it. Let them have accounts that have whatever permissions you want them to have - except "Open Exclusive." You retain that option for yourself. Perhaps what you need to do is define TWO accounts for yourself. One under your own name, and another under a name other than Admin.

Then, to FORCE the issue, you need to set up the security so that your Admin account is a member of the Users group - but NOT a member of the Admins group. (NOTE: I will NEVER forgive Bill Gates for allowing such abominations as having the name of the default administrator account differ by only one letter from the name of the administrator group. Watch out for that trailing "s" - which only applies to the GROUP, not the Admin USER.)

Now make sure that the USER group doesn't have "Open Exclusive" as one of its rights. When you want to do something exclusively to your database, log in under your Administrator name. When you want to just share, log in under your normal name. Make sure your users understand what happens when you get in exclusively.
 
Doc man I appreciate it i am going to try it now. I have the default setting set to open in sharing mode and not exclusive, it is wierd because when you go to set the database password it says you have to open in exclusive mode, then you turn around at the same time and try to open a form that one other user is in an it says you are in exclusive mode, makes no sense at all. I tried to set the sharing function on the folder to share but i get the same error. thanks for all your help I am going to try your solution now thanks
 
This thing is horrible I am so confused now. I printed it out the stuff looks like this

User Name Groups that the user Belongs to
admin Admins,Users
CGM Users
cgmckenzie Users

Groups Users that Belong to Group

Admins admin
Users admin,cgm,cgmckenzie


I tried to set it up the two seperate accounts then i went to pot. don't have a clue what is going on. Do the the other user join from their computer are do i fill in the username and id for them.. thanks for your help
 
You need to read the Microsoft Security faq. It will explain a lot of your questions. Read it several times as there is a lot of information there.

http://support.microsoft.com/default.aspx?scid=kb;en-us;207793

You have to setup each user yourself. Go ahead and assign them a password as well or they never will and the interface to set your password sucks. I can provide you instructions on how to create a form to change your password if you would like.
 
Doc man has got the right idea i tried to set up the users and so forth when i opened the db it asked me for my password. When another computer opened it did not ask for a logon. when the next computer tried it said it did not have permission from me to open it. However when i logged in and went to the computer that did not have to log on. The other computer could open the same form. This tells me that doc was right about every computer openning in exclusive mode before i put the workgroup in effect. i am going to keep plugging at it thanks aucting
 

Users who are viewing this thread

Back
Top Bottom