Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

archiving data

Status
Not open for further replies.

gscma1

Technical User
Jun 27, 2006
94
GB
Can you archive data within your database?

I have data for the year 2006, and i wanted to start a fresh year 2007. is it possible to archive my previous data - i still need this data for reports etc, but it would be easier if it wasn't held within my forms.

many thanks
 
Couple of ways you could handle that...

First would be to move all the "old" records to another table, but then you have to do some union queries and the other considerations when dealing with reports that display the old data.

Second would be to add an archive flag (yes/no) field to the table(s) that stores the data. Set this for any "old" records. When building queries/forms/reports, you can decide to include "archived" data based on this flag.

Hope that helps you get started...

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
i still need this data for reports etc, but it would be easier if it wasn't held within my forms.
Don't start a new set of tables! Filter the forms to only display the current year.

Leslie

Anything worth doing is a lot more difficult than it's worth - Unknown Induhvidual

Essential reading for database developers:
The Fundamentals of Relational Database Design
Understanding SQL Joins
 
To echo Leslie, change the form to be based on a query rather than the entire table. Filter the query for the current year.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top