Results 1 to 3 of 3
  1. #1
    xzitstech is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2020
    Posts
    1

    Need to be able to set a value in record and have the old record available somewhere

    Hello all! Relative newbie here, I haven't been able to find a way to make it so when I change a value in a record it still has the whole old record available for reference .
    basically need a history but for a whole record then need to be able to add that to another modifier table for total values.

    Any advice would be gladly welcomed!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    you can always write a new record to both tables: main & archive.

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,428
    depends on whether you want your archive table to hold the current view and history or just the history

    you can do something like this

    in the current event create a sql string for a query which will insert the field values into your archive table - don't execute it
    it will look something like 'INSERT INTO tblArchive (fld1, fld2) VALUES (fld1, fld2)'

    in the form before or after update event, execute the sql string

    alternatively you can build and execute the string in the form beforeupdate event - but referencing the control oldvalue properties instead.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-28-2019, 03:49 PM
  2. Replies: 5
    Last Post: 08-18-2018, 10:23 AM
  3. Replies: 4
    Last Post: 10-21-2017, 09:56 AM
  4. Replies: 4
    Last Post: 01-12-2016, 02:49 PM
  5. Replies: 3
    Last Post: 03-09-2013, 10:39 AM

Tags for this Thread

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