jgoodman00
Programmer
- Jan 23, 2001
- 1,510
I have written a function which loops through the controls in a form. However, I dont want to hard-code the form name. Instead I want to pass this into the function as a parameter.
In Microsoft Access I could do this as follows:
Sub subName(strFormName as String)
Dim frm as Form
Set frm = Forms(strFormName)
However, this does not appear to work in VB6.
How do I achieve this? James Goodman
In Microsoft Access I could do this as follows:
Sub subName(strFormName as String)
Dim frm as Form
Set frm = Forms(strFormName)
However, this does not appear to work in VB6.
How do I achieve this? James Goodman