Hi. I'm trying to transfer data from one really badly designed database into a new database, but would like to use query/queries rather than some involved code with recordset(s), etc. The basic problem is that the old database has a main data table with 234 columns (!). I've created queries for about 7 types of subsets within that set of columns. Each query includes up to about 10 individual columns that are specific items. The items are dollar amounts for up to 10 different types of limits for the specific type of insurance, where each column name identifies the specific limit.
I want to import that into a table identifying specifics of limits for each policy as follows:
1. ReferenceID (refers to the policy row in the policies table)
2. LimitID (refers to the specific type of limit)
3. LimitAmount (the value that is in the specific column in the old database)
I have built a cross-reference table that identifies the name of each old database column and the value of LimitID in the new database, but can't figure out if there is a way to relate the column name (not value) in the old table/query and the cross-reference table to possibly use a cross tab query to get the values in the layout I need to add to the Limits table in the new database.
Anyone have any ideas?
I want to import that into a table identifying specifics of limits for each policy as follows:
1. ReferenceID (refers to the policy row in the policies table)
2. LimitID (refers to the specific type of limit)
3. LimitAmount (the value that is in the specific column in the old database)
I have built a cross-reference table that identifies the name of each old database column and the value of LimitID in the new database, but can't figure out if there is a way to relate the column name (not value) in the old table/query and the cross-reference table to possibly use a cross tab query to get the values in the layout I need to add to the Limits table in the new database.
Anyone have any ideas?