Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6744235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:03:34+00:00 2026-05-26T12:03:34+00:00

Whenever a record is deleted or updated on a form, I want to save

  • 0

Whenever a record is deleted or updated on a form, I want to save its old values in a history table (let’s call it Revised). I guess I have to do the following:

For record changes:

  • use the BeforeUpdate event to save the data somewhere (collection ? array ? or to a recordset -the Revised table- without saving-yet ?)
  • use the AfterUpdate event to add/save that data to the Revised table

For Deletions:

  • use the OnDelete event to save the data – but again how ? several records could be deleted at once since the form (a subform in fact) is in datasheet view
  • use the AfterDelConfirm to add that data to the Revised table.

Do you have any clues, comments or links for this ?
This is all in a "pure Access" (no SQL Server) at the moment.
Many thanks !


Edit: as usual, properly asking the question gaves me ideas:

  • option 1
    use the BeforeUpdate or the OnDelete to build the SQL statement, and use the AfterUpdate or the AfterDelConfirm to Execute the SQL statement. But that won’t work for multiple deletions ?

  • option 2
    have the Revised recordset defined at form level, insert the record "Before" but only Update "After". Again, problem with multiple deletes.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:03:35+00:00Added an answer on May 26, 2026 at 12:03 pm

    I’ve successfully used a variation of Allen Browne’s approach in a couple of different projects. Check out his website for more details:

    Creating an Audit Log

    His solution uses temp tables and four generic function calls to handle the issue with multiple deletes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I track or get notified whenever a record is inserted or updated
When working in Access, whenever I delete a record from one table - it's
I've events table in Oracle database. I want to send email notification whenever a
II'd like to use Visual Studio to break whenever a record is inserted into
I have set the enctype to: multipart/form-data yet whenever I submit this form, the
Well the issue I'm facing is I wish to update a mysql record whenever
Say I have a record in a table, and this record has a DATETIME
With Linux/GCC/C++, I'd like to record something to stderr whenever malloc/free/new/delete are called. I'm
I am using hibernate and whenever I try to add a record it drops
I have a form used for creating a new record of the model Message.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.