Solved

Global variable with recordsets

Posted on 2014-01-06
2
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 39760476
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
ID: 39771621
Thank you Jim.  Perfect.
0

Featured Post

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Familiarize people with the process of utilizing SQL Server views 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 Microsoft Access…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

749 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