G
Guest
After checking the form is loaded, I get an error trying to set the focus to
the open form. (Runtime error 438, object doesnlt support this property or
method.) Debug brings me to the setfocus line.
Private Sub Return_Click()
If IsLoaded("pgMain") = True Then
Forms![pgMain].SetFocus
Else
DoCmd.OpenForm "pgMain", acNormal
End If
DoCmd.Close acForm, Me.Name
End Sub
the open form. (Runtime error 438, object doesnlt support this property or
method.) Debug brings me to the setfocus line.
Private Sub Return_Click()
If IsLoaded("pgMain") = True Then
Forms![pgMain].SetFocus
Else
DoCmd.OpenForm "pgMain", acNormal
End If
DoCmd.Close acForm, Me.Name
End Sub