Importing data into two tables

C

commassociates

I have two tables. Table 1 will be Orders and Table 2 will be
Customers. Here are the fields:

Customers:
Customer Name
Accout Number
etc.

Orders:
Order Number
Amount
Account Number
etc.


I will be importing data from excel with all the orders. What i want
to be able to do is when i import orders into the "Order" table, and
there is a new account number that is not in "Customers" table, i want
it to add a new record in the Customer's Table with that account
number. Is this possible?
 
P

pietlinden

I have two tables. Table 1 will be Orders and Table 2 will be
Customers. Here are the fields:

Customers:
Customer Name
Accout Number
etc.

Orders:
Order Number
Amount
Account Number
etc.

I will be importing data from excel with all the orders. What i want
to be able to do is when i import orders into the "Order" table, and
there is a new account number that is not in "Customers" table, i want
it to add a new record in the Customer's Table with that account
number. Is this possible?

Import the new Customers first by using an outer join and turning it
into an append query (use the find unmatched query wizard). Then you
can just import all the other data into the Orders table... (Well,
assuming, probably incorrectly, that it's normalized.)
 

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