I am using Access 2000 and have been vainly scouring threads for the last day an a half in an attempt to find a solution to this problem. While some threads are close, I have not been able to successfully adapt those suggestions to my problem.
Scenario: I have two forms (Form1 and Form2) from which a user can come from directly to a common form consisting of a main form (MFormA) and a subform (SFormA). MFormA only displays data. SFormA adds data. When the user is done adding data to SFormA, I would like to return the user to the form from which he originally came (Form1 or Form2). I have a command button set up in SFormA for this purpose. Unfortunately, it doesn't take me back.
I have tried using OpenArgs where I pass Form1 or Form2 to MFormA. I interrogate the incoming me.OpenArgs value using a Form_Open subroutine in MFormA and store the value in a global-level string variable. Unfortunately, the SFormA never receives that information (it contains nulls). The mainform doesn't seem to communicate this information to the subform.
Has anyone developed a successful method for the above scenario?
Thanks, Rooski
Scenario: I have two forms (Form1 and Form2) from which a user can come from directly to a common form consisting of a main form (MFormA) and a subform (SFormA). MFormA only displays data. SFormA adds data. When the user is done adding data to SFormA, I would like to return the user to the form from which he originally came (Form1 or Form2). I have a command button set up in SFormA for this purpose. Unfortunately, it doesn't take me back.
I have tried using OpenArgs where I pass Form1 or Form2 to MFormA. I interrogate the incoming me.OpenArgs value using a Form_Open subroutine in MFormA and store the value in a global-level string variable. Unfortunately, the SFormA never receives that information (it contains nulls). The mainform doesn't seem to communicate this information to the subform.
Has anyone developed a successful method for the above scenario?
Thanks, Rooski