Results 1 to 12 of 12
  1. #1
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231

    Can't get exclusive access to BE DB if a FE DB is open.


    I have a master DB (BE) with all the tables I need for other FE DB applications. The FE DB's are linked to the tables in the BE DB. There 4 applications with their own DB linking back to the BE DB. The BE DB has Queries, Forms and Macros that are used exclusively in the BE and are not linked anywhere. Each FE DB's is linked to only the tables required for its specific application. Some tables are used in more than one application DB. All of the DB's are in shared folders. I thought that this type of split and setup would give me access to the BE DB regardless of the status of any FE DB. What am I missing?

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Since all the FE DBs are linked to the BE DBs, anytime anyone is in any of the databases, the BE will be locked. You need to get everyone out to get exclusive access.

    BTW, you should not have Queries, Forms, and Macros in your BE DB. If you have different tasks that you want to do that you do not want to give to others, simply create a different FE DB (you can have multiple FE versions all connecting to the same BE). That way you will be able to easily update/edit that FE without having to kick everyone out of your BE. Your BE really should just be a data repository, nothing more.

  3. #3
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    Didn't fully realize that about only data in the BE, thanks for the tip. However, sometimes I have to make table changes or add new tables, so I guess I have to wait for all users to be out of their connecting DB's. But that should be OK since I only make those changes after hours when everybody should be out. Unfortunately some of my users haven't gotten used too the idea of exiting the DB when finished or before they go home.

  4. #4
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    If it is only data tables in your back-end, then the only time you need to get everyone out is when you make changes to the tables. There is no getting around that part. But if you have removed all other objects (Queries, Forms, Reports, Macros), then at least you do not need to kick them all out to make changes to those things.

    Regarding your users who don't logout, I have seen some articles on automatically kicking users out after a period of time. A simple Google Search returned this:
    http://www.accessmvp.com/JConrad/acc...e/kickoff.html
    http://www.databasejournal.com/featu...aintenance.htm

  5. #5
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    Thanks for the links. The second one looks very promising.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    I am able to make changes to BE when users are accessing, as long as I am not trying to change a table that is being utilized at that moment. Right now I am adding a new table.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    I am able to make changes to BE when users are accessing, as long as I am not trying to change a table that is being utilized at that moment. Right now I am adding a new table.
    Good to know that is possible. Of course, that can always be tricky, as if users are in the database doing stuff, who knows when they will try to access stuff in the other tables on you. I find it is just easier/safer to boot them all out when trying to make changes to back-end tables.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    Agree, that is safest. But we are a small group. I can usually time my edit for when I am sure no one will be using table I want to edit. And adding a new table has never been an issue.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    And adding a new table has never been an issue.
    Good point. That would not be an issue since the any new table obviously wouldn't have been mapped to the FE yet, so there is no danger of any issue there.

    I can usually time my edit for when I am sure no one will be using table I want to edit.
    I'm jealous! What's it like to have predictable users?

  10. #10
    khughes46 is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Grapevine, TX
    Posts
    231
    Since my DB's are small, I think I want to create stand-alone mirror images of the FE DB's and use them to make changes, then import into the live DB's. his will let me work on forms and reports as needed. Sometimes reports need to be changed on the fly.

  11. #11
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Since my DB's are small, I think I want to create stand-alone mirror images of the FE DB's and use them to make changes, then import into the live DB's. his will let me work on forms and reports as needed. Sometimes reports need to be changed on the fly.
    What I typically do is instead of putting a shortcut to the FE DB on my user's Desktops, I give them a shortcut to a batch file I have on the network. What the batch file does is get a fresh copy of the FE DB from the network and copy it to their hard-drive, and then opens that copy on their computer.

    That allows me to easily make changes to the front-end and distribute it automatically without having to do anything special (I simply replace the FE copy on the network that is being copied down by the batch file).

  12. #12
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    I used to use a batch file to copy the FE then discovered code within the db itself can accomplish. Review https://www.accessforums.net/code-re...end-33331.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Exclusive access/DB lock
    By Boru in forum Access
    Replies: 18
    Last Post: 07-28-2014, 01:38 AM
  2. I don't want exclusive access
    By NISMOJim in forum Access
    Replies: 5
    Last Post: 01-29-2014, 09:26 PM
  3. You do not have exclusive access
    By Buddy in forum Access
    Replies: 4
    Last Post: 11-14-2013, 10:58 PM
  4. Replies: 4
    Last Post: 08-13-2011, 12:34 PM
  5. Open Exclusive Code
    By AKQTS in forum Access
    Replies: 2
    Last Post: 08-11-2011, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums