T
Tony Williams
I have the following code to determine if a form is loaded when another form
is opened and if so the first form should be closed.
Private Sub Form_Load()
If IsLoaded("frmfindrecord") Then
DoCmd.Close acForm, "frmfindrecord"
End If
End Sub
However I get a message that says Compile Error-Sub or function not defined.
Can anyone tell me what's wrong here?
Thanks
Tony
is opened and if so the first form should be closed.
Private Sub Form_Load()
If IsLoaded("frmfindrecord") Then
DoCmd.Close acForm, "frmfindrecord"
End If
End Sub
However I get a message that says Compile Error-Sub or function not defined.
Can anyone tell me what's wrong here?
Thanks
Tony