Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

Access 2007 VB code

$
0
0
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

Viewing all articles
Browse latest Browse all 13329

Trending Articles