Using MS Access/Keeping past records

Advertisement


Question
Hi, my primary table holds the latest configuration of an engine. The engine consists of parts with serial numbers. When these parts are replaced the table keeps the latest configuration. I am looking for a nice way to keep the history i.e. in a year from now to be able to review what serial numbers of parts the engine had in every point of time. Please let me know if you want the relationship table, I can send it if needed, would rather send it to you and not post it. As always, your help would be much appreciated.

Answer
How do you replace a part?

The way I would do this, is to add a field. Maybe call it ReplacedWhen or similar. Then when you replace a part you populate the Replaced when field and add a new record for the new part. Maybe even have a ReplacedBy field so you can track what part replaced it. On your main form you can filter for only records where ReplacedWhen is Null so you only see current parts. Same for reports. But if you want to see the full history, then include those records.

Hope this helps,
Scott<>
Blog: http://scottgem.wordpress.com
Website: http://www.diamondassoc.com
Microsoft Access MVP 2007
Author: Microsoft Office Access 2007 VBA

Using MS Access

All Answers


Answers by Expert:


Ask Experts

Volunteer


Scottgem

Expertise

I can answer almost all types of questions relating to Microsoft Access usage and application design. My strengths are database and interface design.

Experience

I've been designing databases for over 25 years working with dBase, FoxPro, Approach and Access.

Organizations
Author of Microsoft Office Access 2007 VBA
Techncial Editor for Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports & Queries From Que Publishing

Education/Credentials
Brooklyn College BA

©2016 About.com. All rights reserved.