G
Guest
I'm pretty sure I can do this with a recordset, but I'm not sure how.
I've got a form that's tied to a table (with a subform that's tied to a
child table). I've set up a button that pops up a modal window that asks for
some text, and when the control returns to the form, I want to
1. Save the current record;
2. Append the text entered onto the current key field;
3. Go to a new record with the new key, and all other field values the same.
So, for example, the current key is "abcd". The dialog opens and the user
enters "x1". I want to save all the current field values for record "abcd,"
then start a new record with key "abcd.x1" and all field values the same as
the field values that were just saved.
I tried just setting the key field to the new value, and that appears to
work for the fields on the main form, but all of the field values on the
subform are wiped out.
Any suggestions would be greatly appreciated.
Thanks,
Rich
I've got a form that's tied to a table (with a subform that's tied to a
child table). I've set up a button that pops up a modal window that asks for
some text, and when the control returns to the form, I want to
1. Save the current record;
2. Append the text entered onto the current key field;
3. Go to a new record with the new key, and all other field values the same.
So, for example, the current key is "abcd". The dialog opens and the user
enters "x1". I want to save all the current field values for record "abcd,"
then start a new record with key "abcd.x1" and all field values the same as
the field values that were just saved.
I tried just setting the key field to the new value, and that appears to
work for the fields on the main form, but all of the field values on the
subform are wiped out.
Any suggestions would be greatly appreciated.
Thanks,
Rich