G
Guest
Hi
In my database there are 3 tables, linked with referential integrity.
The master table is Customers - which is linked to Items (one to many) and
Payment (1 to many).
I receive a file of transactions from our website and I can import the
Customers record in because it will reject any existing transaction numbers
automatically. If records are added to Customers, I want to add the
corresponding lines to Items and Payment. If the addition to Customers
fails - due to the transaction number already exisiting - I don't want the
corresponding lines adding to the other 2 files - because they will already
exist too.
What is the easiest way to make this happen?
Cheers.
In my database there are 3 tables, linked with referential integrity.
The master table is Customers - which is linked to Items (one to many) and
Payment (1 to many).
I receive a file of transactions from our website and I can import the
Customers record in because it will reject any existing transaction numbers
automatically. If records are added to Customers, I want to add the
corresponding lines to Items and Payment. If the addition to Customers
fails - due to the transaction number already exisiting - I don't want the
corresponding lines adding to the other 2 files - because they will already
exist too.
What is the easiest way to make this happen?
Cheers.