Hi everyone,
Over the past few years I've been maintaining an Access DB that has been used since around 1996. It's was originally designed for a very specfic task of recording measurements but has had quite a bit of feature creep over the years before it became my responsibility.
It generally works in Access 2016 but it has a lot of non- (un?) normalised data, lots of unnecessary redundancy and quite a few weird bugs that I've been unable to resolve.
I've done a full audit of all of the table fields to identify what datatypes they're supposed to contain, built a test db in Access2016 with the expected functionality and am in the process of testing migrating data from the original DB to the test DB.
However, I'm not sure what is the optimal way to perform the data migration. The old tables have field names with spaces, reserved words (Date) and special characters so I've created alternatives in the tables of the test DB.
So, I'm at the point where I'd greatly appreciate advice on migrating data. My plan is to:
1. Export the table to the test DB.
2. Copy the data from the old table so that the contents of the, for example, "Date" field ends up in the "Measurement_date" field in the new table.
3. Create validation rules.
4. Fix any data that does not pass validation.
Is this the optimal approach? If so, is there best practice for step 2? I've seen VBA and SQL solutions but on testing I've not had much success.
Many thanks for taking the time to read this.
Over the past few years I've been maintaining an Access DB that has been used since around 1996. It's was originally designed for a very specfic task of recording measurements but has had quite a bit of feature creep over the years before it became my responsibility.
It generally works in Access 2016 but it has a lot of non- (un?) normalised data, lots of unnecessary redundancy and quite a few weird bugs that I've been unable to resolve.
I've done a full audit of all of the table fields to identify what datatypes they're supposed to contain, built a test db in Access2016 with the expected functionality and am in the process of testing migrating data from the original DB to the test DB.
However, I'm not sure what is the optimal way to perform the data migration. The old tables have field names with spaces, reserved words (Date) and special characters so I've created alternatives in the tables of the test DB.
So, I'm at the point where I'd greatly appreciate advice on migrating data. My plan is to:
1. Export the table to the test DB.
2. Copy the data from the old table so that the contents of the, for example, "Date" field ends up in the "Measurement_date" field in the new table.
3. Create validation rules.
4. Fix any data that does not pass validation.
Is this the optimal approach? If so, is there best practice for step 2? I've seen VBA and SQL solutions but on testing I've not had much success.
Many thanks for taking the time to read this.