Importing Data into a table that have relationships

G

Guy Verville

Hi,

I have a main table called "Choirs". It is linked with numerous ID to other
tables (MusicType (checked table), TypeVoices, Conditions, etc.).

In the other hand, my client gave me an Excel sheet containing 400 entries
that look somewhat like this:

Name Baroque Classical Popular.... Male Female
EvGanymède x x x x

In this example. EvGanymède sings Baroque, Classical and Popular, and is a
Male choir.
In other examples, a choir can be a Male/Female choir, a Children choir,
etc.

the Type of Music table contains the multiple choices and is linked with the
ID key to the Choir table.

So my question is: How do I import the Excel datasheet (400 entries) in
those tables? Is it possible to do it at once?

Guy
www.guyverville.com
 
J

Joe Fallon

You cannot do it during the import.
You have to import the data into a staging table and then write multiple
queries to update your real tables.
Once you have this built, you could accept future Excel files in the same
format and re-run your queries.
If it is just a one-time thing, then delete the staging table and quereis
when done.
 
G

Guy Verville

Thank you for this information.

Guy

Joe Fallon said:
You cannot do it during the import.
You have to import the data into a staging table and then write multiple
queries to update your real tables.
Once you have this built, you could accept future Excel files in the same
format and re-run your queries.
If it is just a one-time thing, then delete the staging table and quereis
when done.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top