Results 1 to 4 of 4
  1. #1
    trident is offline Competent Performer
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    141

    Error: You Do not have exclusive access....

    I have a DB used by several staff. We are using the same form simultaneously, If the form is open in another location, and another staff open the same form, this error appears:



    YOU DO NOT HAVE EXCLUSIVE ACCESS TO THE DATABASE AT THIS TIME. IF YOU PROCEED TO MAKE CHANGES, YOU MAY NOT BE ABLE TO SAVE THEM LATER.

    You have to click the OK button several times just to open the form.

    I have made the a BUTTON to Save/Close Form/Open Form to update the counter and record at the same time. So as you can see, every time you save, this error appears.

    Can you please enlighten me on this error and how can I overcome this.

    Thank you in advance.

    Trident

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    It usu means someone has the db open.
    if you have asked everyone ,and nobody is in it, then try to delete the lock file....ldb, or .laccdb.
    if THAT doesn't delete, then everyone must reboot so you can release the lock on the .laccdb file so you can delete it.

    then you can edit.

  3. #3
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,614
    If you have multiple users then the db should be split so that each user has a copy of the front end on their machine which is linked to a single back end file. The back end file contains just the tables and the front ends usually contain everything else.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    From your description I'm pretty sure that Bob has put his finger on the root of your problem! Just to expand on his post, having multiple users sharing a single, non-split database, sitting on a network drive, is the sure way to repeated episodes of corruption, as well as speed and timing problems! Multiple users simply have to work off of a split database, with each user having their own copy of the Front End, which contains everything except the data/tables, on their respective hard drives, and a Back End with only the Tables on a shared drive.

    Being in forced retirement, I spend 8-10 hours a day here and on other Access forums/newsgroups, and over the past ten years have seen dozens and dozens of reports of non-split apps causing these kind of problems! The really insidious thing is that a non-split app can work for extended periods of time before the troubles begin! But once it does, they become chronic, which is to say they occur over and over and over again!

    Here are two tutorials on Splitting a Database:

    https://www.fmsinc.com/microsoftacce...abaseSplitter/

    http://www.hitechcoach.com/index.php...atid=24:design

    Linq ;0)>

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

Similar Threads

  1. Replies: 13
    Last Post: 09-03-2014, 03:49 AM
  2. I don't want exclusive access
    By NISMOJim in forum Access
    Replies: 5
    Last Post: 01-29-2014, 09:26 PM
  3. Replies: 4
    Last Post: 01-15-2014, 01:00 PM
  4. Replies: 6
    Last Post: 11-15-2013, 07:01 AM
  5. Replies: 7
    Last Post: 06-28-2012, 02:05 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