I am using a Public Variable (PrevForm)to carry the value of any calling form so that when the new form closes, it returns to the appropriate form. (There are multiple paths to get to some forms and I'm not a fan of leaving bunches of forms open)
When I open the new form with a button located on the main form, it's simple, the PrevForm = Me.Name
However, when I use a button that is located in the subform, that syntax records the name of the subform, not the main form.
What would the proper syntax be to reference the main from when inside the subform ? Do I have to call out the entire form name or is there a simplified standard shortcut.