Results 1 to 5 of 5
  1. #1
    luckycharms is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    8

    Access keeps saying someone else has the file open

    Hi Folks,



    I've been getting some database imports and VBA code running on Access 2007 (and Win 7 Pro x64). But now, more often than not, after running some code that errors out, when I make changes in the VB Editor and try to save them, Access give me an error. It tells me that another user has the file open (though there are no other users using it, of course).

    This is horribly annoying - i have to keep closing and re-opening the database. Any ideas as to what's going on here? Any help greatly appreciated!

    Thanks,
    Allie

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    it tells you this only after you run the code and error it out? if so, what is the code and what is the line that it errors on?

    what do you do after it errors? end it from the dialog popup?

  3. #3
    luckycharms is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    8
    seems to be the case that after the code errors out this happens. there's a bunch of code, doesn't always happen on the same line. can't remember if it only happens when the code errors out though.

    when it errors out, i either debug and then stop, or just end it there.

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by luckycharms View Post
    seems to be the case that after the code errors out this happens. there's a bunch of code, doesn't always happen on the same line. can't remember if it only happens when the code errors out though.

    when it errors out, i either debug and then stop, or just end it there.
    what I'm trying to get at is that the message could be generated from an open object in the code that is not closed and de-referenced due to stopping the procedure in the middle. I don't think this is likely, but I've run into similar issues in the past...

    If you post the code, it might become more evident whether it is playing an issue in this problem or not. By the way, I love your cereal...

  5. #5
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    look in the folder where the .mdb is being held ; when the app is closed - and see if there is still a .ldb file there...if so - right click and delete it.

    otherwise do a compact/repair.

    hope this does the job.

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

Similar Threads

  1. Replies: 1
    Last Post: 09-27-2010, 10:10 AM
  2. open access 2007 only when called by executable file
    By rommelgenlight in forum Access
    Replies: 1
    Last Post: 01-20-2010, 12:50 PM
  3. Replies: 1
    Last Post: 08-19-2009, 01:54 AM
  4. Why 2 users cant open an access file directly???
    By finnegan bell in forum Access
    Replies: 6
    Last Post: 03-22-2009, 09:06 PM
  5. Can not open File already in use.
    By Wrangler in forum Access
    Replies: 1
    Last Post: 03-04-2009, 09:50 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