Save selected record as a new (1 Viewer)

peti8788

New member
Local time
Today, 21:49
Joined
Jan 27, 2020
Messages
2
Hi,

I have a form which I used to save records to a table. The form has a dropdown list with a select query, to select any record in the table. I would like to save records as new records after some editing with the .addnew command, but it overwrites the existing record, and then adds a new record too. What can I do with that?
 

June7

AWF VIP
Local time
Today, 11:49
Joined
Mar 9, 2014
Messages
5,470
What you have to do is use code to populate a new record with data from found record and allow user to edit newly created record.

Another approach is to set DefaultValue property of each control for data you want to carry forward. Then as soon as user starts edit of any control on new record row, default values will populate.
 

peti8788

New member
Local time
Today, 21:49
Joined
Jan 27, 2020
Messages
2
Thanks for your reply
how could I populate the new record, and allow the user to edit?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 03:49
Joined
May 7, 2009
Messages
19,237
instead of saving the edited record as new record (which in my opinion will require more vba), why not add a button that will Copy the record as New Record and edit it from there.
 

Users who are viewing this thread

Top Bottom