Is it possible to store a form's name as a string and then refer to that form by that string name?
For instance, I have a form named "frm_payoff_process" that contains a textbox named "txtRecevedTotal", and I can refer to it with the following code:
Now say I had a string variable named "str" in which I stored the name of that form. Would I be able to refer to that control on that form using that variable?
I ask because I have several forms for different processes that all need to send and receive data to/from another "helper" form. I'd like to be able to store the name of the form that calls that helper form so that the helper form knows where to return the data. I'm basically trying to avoid creating multiple identical helper forms tailored to each of my main forms.
Is this possible? Or can anyone offer guidance on a better way to do this?
Any help is greatly appreciated!
For instance, I have a form named "frm_payoff_process" that contains a textbox named "txtRecevedTotal", and I can refer to it with the following code:
Code:
Forms!frm_payoff_process!txtReceivedTotal
Now say I had a string variable named "str" in which I stored the name of that form. Would I be able to refer to that control on that form using that variable?
I ask because I have several forms for different processes that all need to send and receive data to/from another "helper" form. I'd like to be able to store the name of the form that calls that helper form so that the helper form knows where to return the data. I'm basically trying to avoid creating multiple identical helper forms tailored to each of my main forms.
Is this possible? Or can anyone offer guidance on a better way to do this?
Any help is greatly appreciated!