G
Guest
I am having a problem with the following, when I click on the button
command3, the form that is opened has a FORM_OPEN command that uses openargs,
but I get an invalid use of NULL, and I think that it is from not recognizing
the openargs. What do I need to differently. Since I have several buttons
that all open the same form, I would like to have the public sub.
Thanks
Public Sub OPENFRM()
DoCmd.OpenForm "SFRMCA_SELECTAPPS", acNormal, , , , , stdocname
Forms!SFRMCA_SELECTAPPS!Command11.Visible = True
End Sub
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stdocname As String
stdocname = "frmCA_ADD_IDEA0"
Call OPENFRM
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub
command3, the form that is opened has a FORM_OPEN command that uses openargs,
but I get an invalid use of NULL, and I think that it is from not recognizing
the openargs. What do I need to differently. Since I have several buttons
that all open the same form, I would like to have the public sub.
Thanks
Public Sub OPENFRM()
DoCmd.OpenForm "SFRMCA_SELECTAPPS", acNormal, , , , , stdocname
Forms!SFRMCA_SELECTAPPS!Command11.Visible = True
End Sub
Private Sub Command3_Click()
On Error GoTo Err_Command3_Click
Dim stdocname As String
stdocname = "frmCA_ADD_IDEA0"
Call OPENFRM
Exit_Command3_Click:
Exit Sub
Err_Command3_Click:
MsgBox Err.Description
Resume Exit_Command3_Click
End Sub