Results 1 to 7 of 7
  1. #1
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496

    why does the backend *.laccdb file linger?

    i need to occasionally have exclusive to a shared backend file (for routine maintenance ..compact / repair, etc.)


    to do this, I...
    create a copy of the backend file (filename_TEMP.accd)
    then refresh all of the linked tables to it, which i thought would free the original file (filename.accdb)

    however, when I check if I can get exclusive access to it, I cannot. And indeed when I check the folder, filename.laccdb (from the initially linked file) is still there.

    what gives?
    I've checked... no one else has the file open, I have no other instances of ACCESS open that might be using it, I've put a timer in to give pause for the system to clear out the old *.laacdb file...

    I'm baffled and will be very thankful for any thoughts, direction, or advice.

    Mark

  2. #2
    Beetle is offline Unrelatable
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    Camp Swampy (Denver, CO)
    Posts
    207
    Do you have full permissions on the shared network folder (Read/Write/Create/Delete)? If you don't have Delete permission than Access cannot delete the lock file when it closes.

  3. #3
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,413
    it may be you have a hidden instance of access still running in the background. Happens to me occasionally when I'm developing and testing code which has taken a wrong turn somewhere so I have to use the task manager to halt the instance. Sometimes I still cannot delete the lccdb file until I reboot.

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,974
    So you've refreshed YOUR FE to use the NEW BE file ...BUT it sounds like everyone else using a different copy of the FE will still be linked to the original BE file so it will be locked

    The way I do this is as follows:
    Create a table in the BE called tblKickout - 2 fields ID (PK) and Kickout (boolean) and just 1 record

    Add code to the FE to check the value of that field regularly e.g. every 30 seconds
    I do this using the timer event of a hidden form which is always running (and gives a persistent connection)
    When the KIckout field is set to true for maintenance work, existing users have a set time e.g. 5 minutes before the FE is automatically closed.
    New users won't be able to login.

    When all have existed, do your maintenance work then set Kickout = False & inform users the app is available again
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    ... full permission

  6. #6
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    but once i close the current instance of access, the *.laccdb file is definitely gone
    maybe i ought to simple add a line of cod that does delete (seems like a band-aid ...never like band aids)

  7. #7
    markjkubicki's Avatar
    markjkubicki is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Jul 2010
    Location
    Fire Island Pines, NY
    Posts
    496
    ... full permission

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

Similar Threads

  1. error 3027 on backend file
    By vicsaccess in forum Access
    Replies: 3
    Last Post: 06-09-2016, 11:13 AM
  2. LACCDB file won't delete
    By ranman256 in forum Access
    Replies: 4
    Last Post: 05-17-2016, 08:10 AM
  3. Replies: 2
    Last Post: 11-05-2013, 03:59 AM
  4. Hiding backend file
    By ChrisAnthony in forum Security
    Replies: 1
    Last Post: 04-30-2012, 04:13 PM
  5. *.laccdb file stuck
    By jessmith07 in forum Access
    Replies: 4
    Last Post: 03-16-2012, 08:32 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