Jump: Search:

Microsoft Access Developer Center

Table Design

Query Design

Form Design

Form Tips and Mistakes

Form Navigation Caption

First Item in Your ListBox

Validating Combo Boxes

Using a RecordsetClone

Synchronize Two Subforms

Late Bind Tab Subforms

Subform Reference to Control Rather than Field

Tab Page Reference

Report Design

Suppressing Page Headers and Footers on the First Page of Your Report

Add the NoData Event

Annual Monthly Crosstab Columns

Design Environment

Adding Buttons to the Quick Access Toolbar

Collapsing the Office Ribbon for more space

VBA Programming

Using Nz() to Handle Nulls

Avoiding Exits in the Body of a Procedure

Debugging Keys

Setting Module Options

Math Rounding Issues

Source Code Library

Microsoft Access Module VBA Library

Royalty Free VBA Modules

VBA Error Handling

Error Handling and Debugging Techniques

Error Number and Description Reference

Basic Error Handling

Pinpointing the Error Line

Performance Tips

Linked Database

Subsheet Name

Visual Source Safe

Deployment

Prevent Close Box

Disable Design Changes

Broken References

Simulating Runtime

Missing Package & Deployment Wizard

System Admin

Disaster Recovery Plan

Compact Database

Compact on Close

Database Corruption

Decompile Database

Bad DLL Calling Convention

Converting ACCDB to MDB

Cloud and Azure

Cloud Implications

MS Access and SQL Azure

Deploying MS Access Linked to SQL Azure

Additional Resources

Microsoft Access Help

MS Access Developer Programming

More Microsoft Access Tips

Technical Papers

Microsoft Access Tools

Connect with Us

Email NewsletterEmail Newsletter

FMS Development Team BlogDeveloper Team Blog

Facebook PageFacebook

Twitter with FMSTwitter

 

 

Microsoft Access Database Architecture: Taking into Account Time

Provided by: Luke Chung, President of FMS, Inc.

When designing an application and its tables, it's very important to capture the time dimension and determine how data should be stored with the expectation that it will change over time. While there's a natural tendency to keep data normalized so that the same information is stored in only one place, the time dimension also needs to be considered.

A common example is the use of a Customer table where a Customer ID field identifies the record, which contains the person's name, address, etc. An invoice table could include a Customer ID that identifies the customer. While this approach works if the address changes; the Customer record is updated and all his/her invoices reflect the new address; a problem arises if there's a need to go back and find out where a previous shipment was sent. If a backup of the original customer record or the original customer data is not maintained with the original invoice, that information is lost.

While some information may not be worth keeping, old phone numbers for example, other pieces could be critical. For instance, a list of products and prices can be used for new sales, but a copy of the data needs to be kept in the invoice's line items so that a change in the prices does not cause old invoices to change. Thinking about what is important and is not is a crucial part of the design process, and very difficult to fix later.

One way to address this would be to make a copy of the original customer record in the invoice table. This essentially takes a snapshot of the data and preserves it, making it easy to access the old invoice and see exactly what data was used at the time of creation or shipment.

Another approach would be to presume the data does not change that often and when you reprint the invoice you want to show the new address, not the old one. If that's the case, this could be solved by simply keeping a shadow Customer table, so that any changes to the customer record (or relevant fields) are documented along with the time and user who did it. If historic information is required, it would be a simple search in the table to find it.

Feedback

Contact Us  l   Web questions: Webmaster   l   Copyright © FMS, Inc., Vienna, Virginia
Celebrating our 26th Year of Software Excellence