Hi there
I have a record header (client details, invoice number, etc) and a subform which displays a number of lines for than "invoice".
I need to do exact copies of them by simply clicking a button when displaying the current one.
For example, I am viewing (form) invoice no.555 with 3 subform lines.
I then like to click on a button which will duplicate the invoice (obviously with a new invoice number, which is an autonumber, and is the only field that doesn´t get duplicated), as well as all the subform lines.
I then want to give the focus (or show) the newly created copy on the form, discarding the 'old' invoice details.
Is there a fast way of doing this with code?
thanks in advance
I have a record header (client details, invoice number, etc) and a subform which displays a number of lines for than "invoice".
I need to do exact copies of them by simply clicking a button when displaying the current one.
For example, I am viewing (form) invoice no.555 with 3 subform lines.
I then like to click on a button which will duplicate the invoice (obviously with a new invoice number, which is an autonumber, and is the only field that doesn´t get duplicated), as well as all the subform lines.
I then want to give the focus (or show) the newly created copy on the form, discarding the 'old' invoice details.
Is there a fast way of doing this with code?
thanks in advance