Hi All,
I am using the code below to assign a form name to a form variable (vFrm).
Is there a way to assign the Openargs string directly to vFrm, i.e. vFrm =
Openargs ?
Private Sub Form_Load()
Public vFrm As Form
If Openargs = "subfrmProjects " then
vFrm = Form_subfrmProj ects
ElseIf Openargs = "frmProject s" Then
Set vFrm = Form_frmProject s
ElseIf Openargs = "frmCompone nts" Then
Set vFrm = Form_frmCompone nts
End If
End Sub
Thanks for your assistance,
Barry
I am using the code below to assign a form name to a form variable (vFrm).
Is there a way to assign the Openargs string directly to vFrm, i.e. vFrm =
Openargs ?
Private Sub Form_Load()
Public vFrm As Form
If Openargs = "subfrmProjects " then
vFrm = Form_subfrmProj ects
ElseIf Openargs = "frmProject s" Then
Set vFrm = Form_frmProject s
ElseIf Openargs = "frmCompone nts" Then
Set vFrm = Form_frmCompone nts
End If
End Sub
Thanks for your assistance,
Barry
Comment