Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    jhlee2222 is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Dec 2013
    Posts
    7
    I tried running it on another PC, got another error about locks being exceeded. I found there's a setting I could change in Access and now it appears to work like a charm. I am working with a huge number of records, so it's not surprising.



    Thanks again ItsMe for all your help on what turned out to be a LOT of code!

  2. #17
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Alternatively you could change the code in post #13 to open snapshot for the tblDefs and optimistic for the recordset the upates the tables.

    Replace with using the following
    Code:
    Set rsFindField = CurrentDb.OpenRecordset("SELECT * FROM tblDefs " & _
                                              "WHERE([tblDefs].[TableName]) = '" & strTable & "'", dbOpenSnapshot)

    and this one for the update
    Code:
    Dim rs As DAO.Recordset
    Set rs = CurrentDb.OpenRecordset("SELECT * FROM [" & strTable & "]", dbOpenDynaset + dbOptimistic)

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

Similar Threads

  1. Replies: 9
    Last Post: 12-05-2012, 02:20 PM
  2. Replacing many values at once in a multiple values checkbox field.
    By ConfusedDatabaseDesigner in forum Forms
    Replies: 2
    Last Post: 07-20-2012, 08:58 AM
  3. Appending the Null Values to One table
    By Jerseynjphillypa in forum Queries
    Replies: 5
    Last Post: 05-17-2012, 02:01 PM
  4. table lookup / null field values, help!
    By benjammin in forum Forms
    Replies: 3
    Last Post: 07-27-2011, 01:56 PM
  5. Replacing Null with 0
    By gilagain1 in forum Queries
    Replies: 5
    Last Post: 04-23-2009, 01:47 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