Zydeceltico
Registered User.
- Local time
- Today, 07:18
- Joined
- Dec 5, 2017
- Messages
- 843
I have a form (frmCalledForm) that can be opened by multiple other forms (frmCalling1, frmCalling2, frmCalling3, etc.).
The calling forms stay open when frmCalledForm is opened.
When I finish entering data on frmCalledForm I want to save and close both frmCalledForm and the form that called it.
Here is the code I currently have on the Unload event of frmCalledForm:
It works great but only for frmCalling1.
How can I set this up so that the code acquires the name of whatever form called frmCalledForm?
Thanks a ton.
Tim
The calling forms stay open when frmCalledForm is opened.
When I finish entering data on frmCalledForm I want to save and close both frmCalledForm and the form that called it.
Here is the code I currently have on the Unload event of frmCalledForm:
Code:
Private Sub Form_Unload(Cancel As Integer)
On Error Resume Next
DoCmd.Close acForm, "frmCalling1", acSaveYes
End Sub
It works great but only for frmCalling1.
How can I set this up so that the code acquires the name of whatever form called frmCalledForm?
Thanks a ton.
Tim