What reference should I include? For now; msoControlPopup

  • Thread starter Thread starter JB
  • Start date Start date
J

JB

Every now and then I found an example in ms acces help file or on the
internet.
My problem is that I do not know what to include.
My current problem is to make this 2 lines to work.

Set myMenuBar = CommandBars.ActiveMenuBar
Set newMenu = myMenuBar.Controls.Add(Type:=msoControlPopup, _
Temporary:=True)

Is there a way to find this out by my self?
I dont want to have to post a question each time
nor do I thing that people here wants to read about it every time.

....I use access 2002...
 
JB said:
Every now and then I found an example in ms acces help file or on the
internet.
My problem is that I do not know what to include.
My current problem is to make this 2 lines to work.

Set myMenuBar = CommandBars.ActiveMenuBar
Set newMenu = myMenuBar.Controls.Add(Type:=msoControlPopup, _
Temporary:=True)

Is there a way to find this out by my self?
I dont want to have to post a question each time
nor do I thing that people here wants to read about it every time.

...I use access 2002...

For "mso" objects, you'll need a reference to the Microsoft Office 10.0
Object Library. This KB article may be of use to you:


http://support.microsoft.com/default.aspx?scid=kb;en-us;283115&Product=acc2002
ACC2002: References That You Must Set When You Work with Microsoft
Access
 
Back
Top