T
Tina Hudson
Good day,
I have a form "frmMainFamily" with 6 pages (tab ctrls), connected by a field
"Family_ID". On each tab ctrl, I have a subform, with a cmd button on each
subform that, when clicked on, opens a form to add records to that subform.
The subform does not close, and the add form appears on top.
For 4 of the 6 sub forms, the newly added record appears automatically,
after I close the add form. For the last 2 tab ctrls, it does not. I have
to exit the form and then reopen the form to see the new record.
On the add form, I have a cmd button a user clicks to save record (cmdOK),
for each of the 6 forms, as follows:
DoCmd.OpenForm "frmMainFamily", acNormal, "",
"[Family_ID]=[Forms]![frmQuickAdd_TDM]![Family_ID]", , acNormal
DoCmd.Close acForm, "frmQuickAdd_TDM", acSaveYes
Note that the add forms (frmQuickAdd) all have unique names, but I return
the user to basically where they were before.
I do have additional code before this where it checks to make sure that the
user has filled in required fields, such as a date. But this doesn't seem to
matter when I test it.
Any help will be most appreciated.
I have a form "frmMainFamily" with 6 pages (tab ctrls), connected by a field
"Family_ID". On each tab ctrl, I have a subform, with a cmd button on each
subform that, when clicked on, opens a form to add records to that subform.
The subform does not close, and the add form appears on top.
For 4 of the 6 sub forms, the newly added record appears automatically,
after I close the add form. For the last 2 tab ctrls, it does not. I have
to exit the form and then reopen the form to see the new record.
On the add form, I have a cmd button a user clicks to save record (cmdOK),
for each of the 6 forms, as follows:
DoCmd.OpenForm "frmMainFamily", acNormal, "",
"[Family_ID]=[Forms]![frmQuickAdd_TDM]![Family_ID]", , acNormal
DoCmd.Close acForm, "frmQuickAdd_TDM", acSaveYes
Note that the add forms (frmQuickAdd) all have unique names, but I return
the user to basically where they were before.
I do have additional code before this where it checks to make sure that the
user has filled in required fields, such as a date. But this doesn't seem to
matter when I test it.
Any help will be most appreciated.