how to copy a mother-child record in vba?

K

keesb

I have a tabel [Invoice] and a table [InvoiceDet]. For every record in
[Invoice] their can be more records in [InvoiceDet].

So those are mother and child records.

The tables are joind by [Invoice_ID] (unic) and [InvoiceDetInvoice_ID].

Now I want to copy a record form [Invoice] into [Invoice] so making a
duplicate.
But at the same time the child records shout be copied also from and into
[InvoiceDet]. And after that connected by theire new [Invoice_ID] <>
[InvoiceDetInvoice_ID]

How can I do so in VBA ?

regards Kees
 

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