View Single Post
  #85 (permalink)  
Old 04-26-09, 19:48
pkstormy pkstormy is offline
Moderator
 
Join Date: Dec 2004
Location: Madison, WI
Posts: 3,925
Archiving utility

Neat archiving code to make backups of the mdb tables.

This was created by: Sinndho (I posted it here because I thought it appropiate for the code bank.)

Sinndho comments...
Here you are: this new version can archive records from a local table and records from an Access linked table.

Everyone: Please keep in mind that this program is just a skeleton (if I may say so!) and several important features are missing:
First, an error handling mechanism should be implemented. The structures to detect errors are in place but these are not handled properly.
Second, only a few cases among many other possible situations that could be met in a production environment are handled.

If you want to test the program using the form Archive_Form, the file ArchiveDatabase.mdb can be anywhere on the computer
however the second file Sales.mdb that contains a table that is attached in ArchiveDatabase.mdb must be located in the
C:\Data folder (or you have to change the attachment). As it is the archive database Sales2008.mdb will be created in the
C:\Archives folder but this can easily be changed.

Have a nice day!
Attached Files
File Type: zip ArchiveDatabase_2.zip (1.48 MB, 206 views)
__________________
Expert Database Programming
MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

Last edited by pkstormy; 09-07-09 at 01:46.
Reply With Quote