G
Guest
I have a form [FC4_PplOrg] that displays various info about a person's
relationship with an organization. One subform [FC4s1_KeyPeopleList] shows
the person's roles.
A button next to the subform opens another form [FC4Z_EditOrgRole] in which
the user can edit aspects of those roles. This form shows the person's and
org's name, and has a continuous subform [FC4Zs_subOrgRoles] that shows the 1
or more roles for that person.
A user can edit or add roles in the subform. Then the mainform
FC4Z_EditOrgRole has a "Save" button with this code in the "btnSave_Click()"
event:
Private Sub btnSave_Click()
Dim frm As Form
Set frm = Screen.ActiveForm
' Requery source of data for "Master Form".
Forms!FC4_PplOrg.FC4s1_KeyPeopleList.Requery
DoCmd.Close
End Sub
(I assume I don't need to "commit" the changes in the subform to the
underlying tables because by moving focus back to the main form the data is
automatically saved.)
When I click Save - I get Run-time error '2465', Application-defined or
object-defined error".
I assume I'm not refering to the subform on the other form correctly.
If so - what should I do. I not - ditto.
Thanks in advance - John D
relationship with an organization. One subform [FC4s1_KeyPeopleList] shows
the person's roles.
A button next to the subform opens another form [FC4Z_EditOrgRole] in which
the user can edit aspects of those roles. This form shows the person's and
org's name, and has a continuous subform [FC4Zs_subOrgRoles] that shows the 1
or more roles for that person.
A user can edit or add roles in the subform. Then the mainform
FC4Z_EditOrgRole has a "Save" button with this code in the "btnSave_Click()"
event:
Private Sub btnSave_Click()
Dim frm As Form
Set frm = Screen.ActiveForm
' Requery source of data for "Master Form".
Forms!FC4_PplOrg.FC4s1_KeyPeopleList.Requery
DoCmd.Close
End Sub
(I assume I don't need to "commit" the changes in the subform to the
underlying tables because by moving focus back to the main form the data is
automatically saved.)
When I click Save - I get Run-time error '2465', Application-defined or
object-defined error".
I assume I'm not refering to the subform on the other form correctly.
If so - what should I do. I not - ditto.
Thanks in advance - John D