D
Darlene Boran via AccessMonster.com
I have an Access database in XP and am trying to duplicate a record on a form with a query. There are several records showing from the query, I have place a control button to duplicate the record showing and create a new record. The record has an autonum key and when I try creating the new record using a recordsetclose, I get the above error message. I have a reference to DAO Library 3.6 Object Library and I defined the recordset as rst.DAO.Recordset. I am using an AddNew.
If I use an "With recordset .Open "tablename",Current Project.Connection, . . . it works but gives me a duplicate of the last record instead of the one I am currently looking at. How can I present the duplicated record in the form for editing? Thanks for any input. Darlene
If I use an "With recordset .Open "tablename",Current Project.Connection, . . . it works but gives me a duplicate of the last record instead of the one I am currently looking at. How can I present the duplicated record in the form for editing? Thanks for any input. Darlene