Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    714
    Quote Originally Posted by Welshgasman View Post
    Have you tried just using a query?
    There is a query in the sample data base. It seems to work.


    I'm testing the progress bar code with a sample DAO update.

  2. #17
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Quote Originally Posted by twgonder View Post
    Here, I did a simple database.
    Just run the only procedure in the module.
    Does it crash on other versions of Access?

    Attachment 52156
    worked for me. no errors
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  3. #18
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    714
    Quote Originally Posted by moke123 View Post
    worked for me. no errors
    You ran the code in the sample db file as is?
    Have you previously changed the registry to avoid the error?
    What version of Access?

  4. #19
    ano is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Nov 2023
    Posts
    204
    run the update without ";" make all null
    run several times the routine got 4
    so example is ok na the real.
    btw ?dbmaxlocksperfile is 62 and is not in my registry

  5. #20
    moke123's Avatar
    moke123 is offline Me.Dirty=True
    Windows 11 Office 365
    Join Date
    Oct 2012
    Location
    Ma.
    Posts
    1,879
    Quote Originally Posted by twgonder View Post
    You ran the code in the sample db file as is?
    Have you previously changed the registry to avoid the error?
    What version of Access?
    Using O365.
    Ran it as is.

    Never changed the registry.

    This issue has popped up in posts many times over the last 10 years or so.
    The solution I believe has always been what I suggested in Post #2.
    I don't recall if there was a max number of MaxLocks but IIRC 20,000 or so worked fine.
    If this helped, please click the star * at the bottom left and add to my reputation- Thanks

  6. #21
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  7. #22
    twgonder is offline Expert
    Windows 10 Access 2021
    Join Date
    Jun 2022
    Location
    Colombia
    Posts
    714
    Thanks to those that tested. It still fails on my two laptops.
    Adding an On Error Goto and a simple Resume in the error code allows the procedure to complete.
    This is very odd, if some file sharing locks are set, and more are needed, then how does the procedure continue with just a Resume?

  8. #23
    ano is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Nov 2023
    Posts
    204
    no and its certainly not a parameter setting as suggested bec that par is 92 in ur example and no regedit set

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Require VBA code update to "release resources"
    By skydivetom in forum Programming
    Replies: 2
    Last Post: 07-17-2024, 08:19 AM
  2. Replies: 5
    Last Post: 11-13-2017, 02:09 PM
  3. Replies: 2
    Last Post: 05-27-2015, 12:59 PM
  4. Update Query - Retry when lock violation
    By MarkGallie in forum Queries
    Replies: 6
    Last Post: 10-22-2013, 09:36 AM
  5. Replies: 1
    Last Post: 12-29-2011, 05: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