A
AkAlan via AccessMonster.com
I have a main form with 2 subforms and my customer wants to be able to make a
copy of most fields from the main and subforms so he doesn't have to reenter
manually. There are a lot of fields so I don't want to have to make a
variable for each entry and use a recordset to update the tables. I have made
an update query and it works for the main form data but not the subforms. The
main forms primary key is an autonumber so jet taqkes care of making the new
record unique. The problem with the subforms is that their primary keys are
not autonumber, they are derived from the main forms primary key so when I
try to copy the record I get a duplicate value error which makes sense.
I have a couple of ideas on what to try next but was hoping someone might
have had to do this already and have a solution in place. thanks.
copy of most fields from the main and subforms so he doesn't have to reenter
manually. There are a lot of fields so I don't want to have to make a
variable for each entry and use a recordset to update the tables. I have made
an update query and it works for the main form data but not the subforms. The
main forms primary key is an autonumber so jet taqkes care of making the new
record unique. The problem with the subforms is that their primary keys are
not autonumber, they are derived from the main forms primary key so when I
try to copy the record I get a duplicate value error which makes sense.
I have a couple of ideas on what to try next but was hoping someone might
have had to do this already and have a solution in place. thanks.