IndyBean
asked on
Access Database Locked to Multiple Users, How Do I Unlock it?
Hi Experts,
I have a database that needs to be open to multiple users. Currently when it is opened by one user it creates a Lock File. The main window is a form that allows record searching via the record selector arrows, and auto update entry fields.
How do I allow multiple users? Do I need to eliminate the record selector arrows, or put in a save button?
I have a database that needs to be open to multiple users. Currently when it is opened by one user it creates a Lock File. The main window is a form that allows record searching via the record selector arrows, and auto update entry fields.
How do I allow multiple users? Do I need to eliminate the record selector arrows, or put in a save button?
check the Record Lock property of the form, what is the setting?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Firstly, the database should be split as a front-end and a back-end. Put all your tables in one database (the data) and queries, forms, reports, etc. in the front-end. "Link" to all the tables in the back-end. Make a copy of the front-end for each user. This process works quite well with Access in a multi-user environment. Also I avoid bound forms and, yes, I would eliminate the record selectors. Let the users select the record they want to work with by using a combo or list box.
ASKER
The Form Record Lock Property is Set to No Locks
ASKER
I have seen all in one databases that allow multiple users. How is this accomplished/ why is this different?
IndyBean
can you check the codes in the open event of the form.
see if there is something that set the recordsettype
can you check the codes in the open event of the form.
see if there is something that set the recordsettype
in tools/options/advanced there is the option to open the db as shared or exclusive. But I strongly recommend u dont go this approach. This approach is more prone to corruption.
ASKER
The Advanced option is set as Shared already
There is no event on open.
There is no event on open.
ASKER
I just need to stop the DB from creating a lock file
guess, it'll be better if we can see your db. can you zipped it and post here http://www.ee-stuff.com
ASKER
I have a table linked to an excel spreadsheet. Does this creat an issue the spreadsheet is closed at the moment.
Are u saying u want one user to have edit permissions, but others to have read only?
what u can do is put db on a network and set folder permissions to read/write for all
this way the lock file can be created
however the database file itself should only have write permissions to the one user, and be read only for all other users
what u can do is put db on a network and set folder permissions to read/write for all
this way the lock file can be created
however the database file itself should only have write permissions to the one user, and be read only for all other users
ASKER
All users must have write permissions, these can be done through single record update Save routines. Its a customer issues database so CSRs will have it open all day and log customer issues.
The DB is on a network drive.
The DB is on a network drive.
You cannot prevent a lock file from being created - the ldb is created even if a single user opens a database
Im not the only one that recommends splitting databases in a multi user environment, there are plenty of other sites out there that also do.
If u do go this approach, u may be interested in this
5 Simple Tips to Prevent MS Access Database Corruption
http://www.ezinearticles.com/?5-Simple-Tips-to-Prevent-MS-Access-Database-Corruption&id=64689
number 1 is to split the db
If u do go this approach, u may be interested in this
5 Simple Tips to Prevent MS Access Database Corruption
http://www.ezinearticles.com/?5-Simple-Tips-to-Prevent-MS-Access-Database-Corruption&id=64689
number 1 is to split the db
and take regular backups!!!!
Don't forget security on that folder must enable the user to write/modify.