1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Open Access Database EXCLUSIVE

Discussion in 'Business Applications' started by tomlock2, Dec 2, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. tomlock2

    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.
     
  2. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    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?
     
  3. tomlock2

    tomlock2 Thread Starter

    Joined:
    Nov 20, 2011
    Messages:
    49
    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?
     
  4. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    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.
     
  5. Rockn

    Rockn

    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.
     
  6. Sponsor

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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1029364

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice