I am creating a new system that uses data from an Access database that has been in use for over 10 years.
Because of this, I am limited in what I can do with regard to restructuring the tables etc.
Some of the tables have become very large over time, with much of the information now redundant. While this information is not required on a day-to-day basis, we cannot delete it in case it is required in the future.
There are 4 tables:
Activities - Correspondence - Clients - Client_Contacts
I have created duplicate tables (Activities_archive, Correspondence_archive, etc) and, with the guidance of other forum members (thanks Mike & Stan), have used action scripting to allow the user to select a client and move records from the main tables into the archive tables, and back again if required.
My problem is as follows....
The Activities, Clients and Client_Contacts tables all contain the Client_ID field, making it easy to select and move records based on the value of this field. The Correspondence table is only linked to the Activities table via the Activity_ID field.
I guess what I need to do is read the Activity_ID field value for each record in the Activity table where the Client_ID field matches the selected client (currently placed in a variable), and then search for records in the Correspondence table where the Activity_ID field value matches.
a/ Is this the best way to go about it, or is there a better way (maybe based on a table set)?
b/ Any script examples would be REALLY appreciated.
Thanks in advance
Because of this, I am limited in what I can do with regard to restructuring the tables etc.
Some of the tables have become very large over time, with much of the information now redundant. While this information is not required on a day-to-day basis, we cannot delete it in case it is required in the future.
There are 4 tables:
Activities - Correspondence - Clients - Client_Contacts
I have created duplicate tables (Activities_archive, Correspondence_archive, etc) and, with the guidance of other forum members (thanks Mike & Stan), have used action scripting to allow the user to select a client and move records from the main tables into the archive tables, and back again if required.
My problem is as follows....
The Activities, Clients and Client_Contacts tables all contain the Client_ID field, making it easy to select and move records based on the value of this field. The Correspondence table is only linked to the Activities table via the Activity_ID field.
I guess what I need to do is read the Activity_ID field value for each record in the Activity table where the Client_ID field matches the selected client (currently placed in a variable), and then search for records in the Correspondence table where the Activity_ID field value matches.
a/ Is this the best way to go about it, or is there a better way (maybe based on a table set)?
b/ Any script examples would be REALLY appreciated.
Thanks in advance
Comment