G
Guest
If I have a form 'FormA', say, then I can access a control 'ControlA', on
that form, as FormA.ControlA and I can find the name of the form as
FormA.Name. If, however, FormA.Name is provided to me by a piece of code I
cannot immediately see how to use this form name string, to access
FormA.Control. A clumsy method is to use a Case statement to Set Form
appropriately, according to the value of FormA.Name, but there must be a
simpler way.
In other words, if stFormName = FormA.Name and I have stFormName, how do I
get FormA?
that form, as FormA.ControlA and I can find the name of the form as
FormA.Name. If, however, FormA.Name is provided to me by a piece of code I
cannot immediately see how to use this form name string, to access
FormA.Control. A clumsy method is to use a Case statement to Set Form
appropriately, according to the value of FormA.Name, but there must be a
simpler way.
In other words, if stFormName = FormA.Name and I have stFormName, how do I
get FormA?