Results 1 to 2 of 2
  1. #1
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30

    Check for Exclusive Access before running script?

    Hey guys, I tried to search the forums briefly, but got a lot of complaints about exclusive access causing problems--I actually want it.



    I have a VB Script in my database that runs through and refreshes a number of static tables from an ODBC source (required for speed down the line), and--while I know I should be splitting the database into a front/back configuration, it's currently just a single DB.

    We're working with the fact that we need to get everyone out of the DB before we can update it, but if someone triggers the update, we tend to lose a few tables (because the script runs as far as it can before bombing out).

    I would really like to have a check before anything executes that basically just says "Do you have exclusive access? Yes? Run script. No? Tell the user we're not exclusive </3"


    I found some information about the AllPermissions() function, but I can't figure out how to use it =X

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    I would really like to have a check before anything executes that basically just says "Do you have exclusive access? Yes? Run script. No? Tell the user we're not exclusive </3"
    I found code here that checks if dB opened exclusive or not:

    How to Determine If a Database Is Open Exclusively
    http://support.microsoft.com/kb/117539

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. Replies: 3
    Last Post: 02-04-2014, 09:50 AM
  3. I don't want exclusive access
    By NISMOJim in forum Access
    Replies: 5
    Last Post: 01-29-2014, 09:26 PM
  4. You do not have exclusive access
    By Buddy in forum Access
    Replies: 4
    Last Post: 11-14-2013, 10:58 PM
  5. Replies: 4
    Last Post: 08-13-2011, 12:34 PM

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