Solved

Global variable with recordsets

Posted on 2014-01-06
2
259 Views
Last Modified: 2014-01-10
My task is to create a historical record of a database record change.  Example:  User opens a record.  Modifies it.  Saves it.  My history table should have record1, the original record before changes.  Then record2, the record after changes.

My plan:
User selects record to edit.
Save that record as in an array or recordset(?)
Edit record.
On save in history table save original record from array or recordset, then save new record.
Then save changes in original table.

There are about 50 fields.  I'm trying to avoid handling them one by one.

Does this plan make sense?  
Can I create a global recordset variable, save the original recordset to it, and then use it later?  Another way?  

Thanks,
Brooks
0
Comment
Question by:gbnorton
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
Comment Utility
Brooks,

 Have a look at the following:

http://allenbrowne.com/AppAudit.html

Which is a complete drop in Audit trail solution.

Jim.
0
 

Author Closing Comment

by:gbnorton
Comment Utility
Thank you Jim.  Perfect.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now