GoatieEddie
Technical User
Hi guys,
I have been struggling with this and now giving in to the masters!
I have a table in a database containing customer details that imported from our central system. Occassionally (and if I get this to work properly it could end up daily), I re-import this to ensure it is up to date. However, to ensure I don't lose customers that may have left, I have been importing with the entire table into the existing table with the customer number as a primary key so that old ones are kept, existing ones are kept unchanged and new ones are added.
Great. But sometimes the data in one of the fields (lets say contactname) changes even though the customer remains otherwise the same. What I want to do, is move the existing field in the table to an archive table (with the new and old contactname and new field with date of change) and then update the existing table with the new value.
And I have kind of lost my way! I started looking at recordset but sank quickly!
Any help would be greatly appreciated.
Many thanks as always,
GE
I have been struggling with this and now giving in to the masters!
I have a table in a database containing customer details that imported from our central system. Occassionally (and if I get this to work properly it could end up daily), I re-import this to ensure it is up to date. However, to ensure I don't lose customers that may have left, I have been importing with the entire table into the existing table with the customer number as a primary key so that old ones are kept, existing ones are kept unchanged and new ones are added.
Great. But sometimes the data in one of the fields (lets say contactname) changes even though the customer remains otherwise the same. What I want to do, is move the existing field in the table to an archive table (with the new and old contactname and new field with date of change) and then update the existing table with the new value.
And I have kind of lost my way! I started looking at recordset but sank quickly!
Any help would be greatly appreciated.
Many thanks as always,
GE