dbTalk Databases Forums  

How to track the history of a selected number of fields in a record? Access2003

comp.databases.ms-access comp.databases.ms-access


Discuss How to track the history of a selected number of fields in a record? Access2003 in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gomez
 
Posts: n/a

Default How to track the history of a selected number of fields in a record? Access2003 - 12-17-2004 , 11:16 PM






I have set up two tables ****current and ****history.

The history table contains all the fields which I want to track changes
on. The current table contains just the most recent information from
those fields (history not important).

The entry forms are set up with a query to access each field from it's
correct table. I have a 2 field primary key in the history table
(field 1 is a facility ID, and field 2 is the date of inspection). In
tracking the history the facilty ID will be duplicated, and the date
will also be duplicated for different records, but not both at the same
time (so I believed this to be the best way to go).

The problem I'm having is when I open the form it brings in the most
recent information from both tables, but when I go to save the record
(the facility ID is the same, but the date is different)it just
overwrites everything in the history table and doesn't create a new
record under the different date there.
Any suggestions would be appreciated. Thanks.


Reply With Quote
  #2  
Old   
pietlinden@hotmail.com
 
Posts: n/a

Default Re: How to track the history of a selected number of fields in a record? Access2003 - 12-18-2004 , 10:11 PM






Read this article...
http://www.mvps.org/access/modules/mdl0021.htm

or just download the code and play with it... of course, you gotta lock
the users out of the tables...


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.