Results 1 to 2 of 2
  1. #1
    mcucino is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Jul 2017
    Location
    Providence, RI
    Posts
    74

    Undo changes when record has been refreshed


    Hi all, I am trying to think of a straightforward way to revert the record on a single form to the original values from when it was opened. Normally, this is very easy with the undo command, but there are a lot of after update events for each field that refresh the data so the record isn't dirty. Aside from an on load event that stores each field as a variable and reverts it back upon clicking undo, is there an easy way to do this?

  2. #2
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    IMHO, if it's not simple because of the potential record saves (some of which can't easily be undone or prevented, if at all) then consider a temp table. Use a query to load records into the temp and base the form on it. If you want to keep the results, you update the primary table. You need to consider the potential for concurrent users on the same record trying to apply updates. If this is a multi user situation, you have of course split the db, so the temp table(s) need to be in the user's fe copy. Note that I'm not talking about continually deleting/re-creating a table when I refer to temp table.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Refreshed date.
    By Perfac in forum Programming
    Replies: 6
    Last Post: 04-10-2018, 10:54 AM
  2. Report saved in pdf is not refreshed
    By myaccesss in forum Reports
    Replies: 2
    Last Post: 02-25-2016, 06:04 AM
  3. Undo New Record IF
    By data808 in forum Programming
    Replies: 3
    Last Post: 02-22-2014, 07:59 AM
  4. Replies: 4
    Last Post: 07-30-2013, 02:07 PM
  5. Replies: 3
    Last Post: 11-18-2011, 03:53 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