G
Guest
Hi,
I am trying to transfer data from one large flat dataset (an excel file)
into normalized tables in access.
I have imported the excel file into a temporary table called tempdata
What is the best of way of doing this transfer, while holding the
relationships? I can get the data into the first relational table easy enough.
This is what I've done so far,
strsql = "INSERT INTO tblsurvey (year_txt, formcode_nm,survey_type_txt,
grade_txt, survey_name_txt ) SELECT DISTINCT year, form, type, grade,
surveyname FROM tempdata"
How do I link the first record I put in the tblsurvey to the other INSERT
INTO statements for the other two tables?
I am trying to transfer data from one large flat dataset (an excel file)
into normalized tables in access.
I have imported the excel file into a temporary table called tempdata
What is the best of way of doing this transfer, while holding the
relationships? I can get the data into the first relational table easy enough.
This is what I've done so far,
strsql = "INSERT INTO tblsurvey (year_txt, formcode_nm,survey_type_txt,
grade_txt, survey_name_txt ) SELECT DISTINCT year, form, type, grade,
surveyname FROM tempdata"
How do I link the first record I put in the tblsurvey to the other INSERT
INTO statements for the other two tables?