Open Access Database EXCLUSIVE

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

tomlock2

Thread Starter
Joined
Nov 20, 2011
Messages
49
How do I set the an MSACCESS 2010 database to only open in Exclusive use -- within the database itself? I realize you can set a shortcut to open it a database in Exclusive Use mode with the /excl option on the open statement however it seems to me that anyone could create a new shortcut without the the EXCL option and defeat your intentions.
 

OBP

Joined
Mar 8, 2005
Messages
19,896
You can't as it is already opened.
You could Lock everything once you have opened it.
But why would you want to as the database can't be shared?
 

tomlock2

Thread Starter
Joined
Nov 20, 2011
Messages
49
You can't as it is already opened.
You could Lock everything once you have opened it.
But why would you want to as the database can't be shared?
Because I only want ONE user to be in the database at a time I would like to find a setting inside of the database to say OPEN EXCLUSIVELY (unless shift key held down on open).

Sort of like you can override the hiding of the database window setting when you open a database while holding down the shift key, isn't there a setting that says if you just opened the database normally (without holding the shift key) that it would open in EXCL use mode?
 

OBP

Joined
Mar 8, 2005
Messages
19,896
It might be possible by opening a Form in Design Mode using VBA, because that should lock it into Exclusive mode until the Form is closed using VBA.
It would also mean that you would not be able to access the database as a Programmer if someone opens in that way.
 
Joined
Jul 29, 2001
Messages
21,334
Why are you wanting only one person to have access to the database at a time? There is record locking to keep users from editing the same record at the same time. Kind of defeats the purpose of having a database.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top