P
Peter Hallett
I would appreciate some assistance with a bit of syntax.
The statements:
Dim MyForm As Form
Set MyForm = Forms![frm_Some_Form]
seem to work OK with frm_Some_Form as a literal but I can’t seem to find an
equivalent statement with the form name as a variable. In the case of
passing the name as an argument to a procedure, for example, the code might
look like:-
Public Sub DoSomething (InFormName As String)
Dim MyForm As Form
Set MyForm = Forms! ??????
…
…
End Sub
but I am unable to find a suitable Set statement which will satisfy the
compiler.
The statements:
Dim MyForm As Form
Set MyForm = Forms![frm_Some_Form]
seem to work OK with frm_Some_Form as a literal but I can’t seem to find an
equivalent statement with the form name as a variable. In the case of
passing the name as an argument to a procedure, for example, the code might
look like:-
Public Sub DoSomething (InFormName As String)
Dim MyForm As Form
Set MyForm = Forms! ??????
…
…
End Sub
but I am unable to find a suitable Set statement which will satisfy the
compiler.