Below is code I was trying to use to see if my Main Menu was loaded.
I get an error message that says "the object you referred to is either closed or doesn't exist." The name is spelled corectly and the object is opem and certainly exists.
What ame I doing wrong?
Bill
Private Sub Button12_Click()
On Error GoTo Err_Button12_Click
If CurrentProject.AllForms("main Acces Entry").IsLoaded Then
DoCmdn Macro "MainMenu.Main Hide"
End If
I get an error message that says "the object you referred to is either closed or doesn't exist." The name is spelled corectly and the object is opem and certainly exists.
What ame I doing wrong?
Bill
Private Sub Button12_Click()
On Error GoTo Err_Button12_Click
If CurrentProject.AllForms("main Acces Entry").IsLoaded Then
DoCmdn Macro "MainMenu.Main Hide"
End If