I’ve worked out that i can use the following lines to create a duplicate record:
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
DoCmd.RunCommand acCmdPasteAppend
but my table requires a unique number in the ProductID field. How do i change the contents of the record before the pasteappend?
Each record in my table has a unique product code. I want to be able to copy the record details, change the product code to something different and then add it to the table.
Anyone give any pointers?
John