Results 1 to 5 of 5
  1. #1
    Larryg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    50

    Record Lock on query search

    Hello;



    Weird question (at least for me) concerning record locks on VBA query searches using a text string. I have a text (combo) box on an unbound form that triggers a VBA query, that creates a recordset, which populates a form. The issue I'm experiencing is the user can select from about 10 names to search on. All name searches work fine, but when one user selects a name that is similar to a name that another user selects, they get a record lock error. Retrying the search in a few minutes returns the same error. However, if that same user selects a different name, the search run fine. The only thing the two name gave in common is the first 3 letters of the two different names, are the same. Is it possible that Access only looks at the first few letters of name and locks any subsequent search for a name similar?

    Thanks...

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Is this a split database with muti users?

  3. #3
    Larryg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    50
    Quote Originally Posted by ranman256 View Post
    Is this a split database with muti users?
    Yes, Access 2010

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Odd that there would be locks.
    you could try using snapshots to view data,(instead of dynasets)
    but when the user wants to edit a rec, use a dynaset.

  5. #5
    Larryg is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    50
    Quote Originally Posted by ranman256 View Post
    Odd that there would be locks.
    you could try using snapshots to view data,(instead of dynasets)
    but when the user wants to edit a rec, use a dynaset.
    What is really weird to me is that if they chose unlike names to search/load on, there is no problem. It's only when user #1 loads "Smith", and user #2 attempts to load "Smithsonian". User #2 can't load his "Smithsonian" until user #1 exits their screen with "Smith" loaded. Same users can load "Smith" and "Jones" at the same time without an issue.

    Re your suggestion on snapshots v dynaset, they are not really editing the actual record in the table, a) because it's an unbound form, and b) when they do make a change it files the changed record to another completely different table. I currently do have it set at dynaset, so maybe I could try snapshot. Can't hurt as a test.

    Thanks...

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

Similar Threads

  1. Edited Record Lock?
    By mrmims in forum Forms
    Replies: 1
    Last Post: 09-01-2016, 03:55 PM
  2. Record Lock when appending
    By Mick99 in forum Access
    Replies: 1
    Last Post: 07-07-2015, 10:11 AM
  3. Lock record on a query result
    By Secue in forum Queries
    Replies: 1
    Last Post: 07-17-2013, 03:30 PM
  4. Replies: 9
    Last Post: 05-12-2012, 12:16 PM
  5. lock a record
    By Nokia N93 in forum Programming
    Replies: 3
    Last Post: 02-21-2011, 02:51 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