Results 1 to 5 of 5
  1. #1
    tck0633 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2018
    Posts
    2

    Query generating Warning Message


    I have written an update query that updates ~224,000 records from another large table. When I am running the query, I get this message from Access: "There is not enough disk space or memory to undo the data changes this action query is about to make." It then prompts me to either continue or cancel the query. I normally will just continue and the table will be updated. What I am afraid of is if there is an issue and I cannot roll back the updates. I have researched this message to some extent and most sites say to up the number on the MaxLocksPerFile in the registry - which I have upped to 1000000 - but the message persists. Any suggestions?

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Did you turn off messaging?
    setWarnings False

  3. #3
    tck0633 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Aug 2018
    Posts
    2
    I'm not sure how to do that outside of VBA. Besides, I want to be able undo the data changes if there is a problem. This may not be possible with tables this large, but I wanted to see if there was a way to set up the environment so I COULD undo changes if necessary.

  4. #4
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    How full is your disc? How many fields are being updated? Updating ~224,000 records with 2 fields requires less space than ~224,000 records with 20 fields.

    Can you break up the records to do 112,000 records at a time? Or maybe do 75,000 records at a time? (Try on a COPY of the dB.)

  5. #5
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,430
    I want to be able undo the data changes if there is a problem
    Think you need to clarify, you can't undo the data changes at a later time. You either get the message 'There is not enough disk space....' part way through the update or you get the message something like '224000 records to be updated, xx failed due to key errors, xx due to …' just before the update is actioned. Once you press yes you are committed, you cannot subsequently undo.

    Only way you could do it is to make a copy of the target table, do your update and make your checks. If not happy replace the target table with the copy to put you back to where you were.

    You might want to investigate transaction processing - see this link to get you started https://msdn.microsoft.com/en-us/vba...-dao-recordset but it relates to running SQL via code, not running a query directly, and I'm not sure it would address your particular issue anyway.

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

Similar Threads

  1. Pop Message Box Warning
    By data808 in forum Programming
    Replies: 4
    Last Post: 01-11-2014, 04:43 PM
  2. Access Warning Message
    By marksnwv in forum Access
    Replies: 1
    Last Post: 06-01-2012, 01:46 PM
  3. Make Table Warning Message
    By cassidym in forum Queries
    Replies: 1
    Last Post: 03-16-2011, 10:12 AM
  4. Access warning message
    By John Southern in forum Access
    Replies: 2
    Last Post: 05-28-2010, 06:01 AM
  5. Records deleted with NO warning message.
    By evanscamman in forum Access
    Replies: 2
    Last Post: 12-14-2007, 11:18 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