Hi,
When I click cancel button in the report, i got the following msg "Run-time error 2450: can't find the form ..referred to in a macro expression or visual basic code".
My code:
Private Sub cmdCancel_Click()
If Left(Me.OpenArgs, 12) = "frmACAddEdit" Then
SelectIt Forms(Me.OpenArgs)!txtAttorneySSN -->error in
this line
End If
Forms(Me.OpenArgs).Visible = True
DoCmd.Close acForm, Me.Name
End Sub
When I click cancel button in the report, i got the following msg "Run-time error 2450: can't find the form ..referred to in a macro expression or visual basic code".
My code:
Private Sub cmdCancel_Click()
If Left(Me.OpenArgs, 12) = "frmACAddEdit" Then
SelectIt Forms(Me.OpenArgs)!txtAttorneySSN -->error in
this line
End If
Forms(Me.OpenArgs).Visible = True
DoCmd.Close acForm, Me.Name
End Sub