Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicating a record

Status
Not open for further replies.

integritycare

Technical User
Mar 12, 2011
151
AU
Hello,

I have a been requested to implement a way in which an invoice can be duplicated so that dates can be changed on the subform without having to reenter all the data
The mainform has a subform which holds the invoice items.
I put a duplicate control on the mainform which will duplicate the mainform , but how can I get the data from the subform to copy all the records, so that the invoice is an exact copy.
The subform is linked to the mainform by invoice number.

Many thanks,

Integrity
 
This is a basic append query involving the record source of the subform. If you provide some significant table and field names, I expect someone can help with the code.

Duane
Hook'D on Access
MS Access MVP
 
copy all the records, so that the invoice is an exact copy" - cannot be.
I hope you have some Primary Keys on your table(s) (if not, you should) and they canNOT be duplicated.

Have fun.

---- Andy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top