Compile Error in Access 97

JohnN2006

Registered User.
Local time
Today, 14:38
Joined
Feb 17, 2006
Messages
16
I am using the following code to hide all of the Toolbars and Menu Bar.


For i = 1 To Application.CommandBars.Count
Set objOnMenu = Application.CommandBars(i)
objOnMenu.Enabled = False
Next i

This works fine in Access 2000 but when I convert it to be used in Access 97 the users are getting a compile error saying that the project or library cannot be found.

I have checked the references and they seem ok.

Any ideas would be greatly appreciated ??

John.
 

Users who are viewing this thread

Back
Top Bottom