Results 1 to 7 of 7

Thread: Who has locked what?

  1. #1

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951

    Who has locked what?

    From time to time, my users get a message that a record is locked by naother user. I can see who is accessing the db (ACESS 2000), but I can't find out who has the record locked. Is there a way (in vb6) to determine who has a record/table locked?

  2. #2
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263
    If you open up the .ldb file that is created (with any text editor -- e.g. notepad), you will see the UserIDs of anyone who is currently in the database. Beyond that, I'm not sure. But, if you only have one or two other people in the .ldb, it wouldn't be hard to determine the culprit.

  3. #3
    Fanatic Member
    Join Date
    May 2002
    Posts
    746
    That *can* work (and often does) but it's not guaranteed. Check out this thread.

  4. #4
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263
    Good catch. Be sure to note the microsoft support article referenced on that page.

  5. #5

    Thread Starter
    PowerPoster Pasvorto's Avatar
    Join Date
    Oct 2002
    Location
    Minnesota, USA
    Posts
    2,951
    That is all godd and fine. However, I can, with the Windows resource kit, tell who is logged into the db. What I need to know is who is accessing what table at any given time. I have users that will open a screen which updates the db and leave the PC sitting there, thereby locking out anyone else. I haved tried to ease the problem by judicious use of = nothing code to release the record set. I try to not open the recordset until they have pushed the 'update' button.

    I am leaning toward the idea that it can't be done.

  6. #6
    Fanatic Member
    Join Date
    May 2002
    Posts
    746

    No offense but...

    The front-end needs to be redesigned such that this can't happen. B/c users will always f***-up a perfectly good idea. Think disconnected recordsets and the like.

  7. #7
    Hyperactive Member
    Join Date
    May 2002
    Location
    Omaha, NE
    Posts
    263
    Not my users. I work in user eutopia. All of my users must pass a minimum requirement of knowing their head from their a$$ before their resume will even be considered. They are all "expert" Access users as well -- just ask them.

    Oh...I'm sorry, I just woke up.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width