C
celinesuzzarini
Hi all,
I would like to import a spreadsheet into my access database, but in
multiple tables.
Here are my tables:
Students_tbl:
- studentID: autonumber
- firstname, lastname
Classes_tbl:
- classID: autonumber
- classname, credits
Students_and_Classes_tbl:
- studentID: foreign key to students_tbl
- classID: foreign key to classes_tbl
- quarter
- grade
Here is my spreadsheet:
- lastname
- firstname
- classname
- credits
- quarter
The main thing is to fill in Students_and_Classes_tbl with the right
IDs.
However, if the student doesn't exist, I need to create it in
Students_tbl, and then add the proper record in
Students_and_classes_tbl.
Same thing if a class doesn't exist.
One of my suggestions would be to import the spreadsheet into a table,
and then move the records to the corresponding table... however, I have
no idea how to match the names to import with the correct auto IDs.
Any suggestions?
Thank you so much,
Celine
I would like to import a spreadsheet into my access database, but in
multiple tables.
Here are my tables:
Students_tbl:
- studentID: autonumber
- firstname, lastname
Classes_tbl:
- classID: autonumber
- classname, credits
Students_and_Classes_tbl:
- studentID: foreign key to students_tbl
- classID: foreign key to classes_tbl
- quarter
- grade
Here is my spreadsheet:
- lastname
- firstname
- classname
- credits
- quarter
The main thing is to fill in Students_and_Classes_tbl with the right
IDs.
However, if the student doesn't exist, I need to create it in
Students_tbl, and then add the proper record in
Students_and_classes_tbl.
Same thing if a class doesn't exist.
One of my suggestions would be to import the spreadsheet into a table,
and then move the records to the corresponding table... however, I have
no idea how to match the names to import with the correct auto IDs.
Any suggestions?
Thank you so much,
Celine