Adding Popup Menus / Even just a menu would be nice...

  • Thread starter Thread starter Chris Kersey
  • Start date Start date
C

Chris Kersey

I still haven't figured this one out.

In standard VB, you set a reference to the common controls and one of the
tools in your toolbox becomes a "menu" from which you can draw on your form
and then work with. Then you can reference that menu's name in a MenuPopUp
call within a click event. Not so in ACCESS?

I see in the properties references to the following items: "Menu Bar",
"Shortcut Menu", "Shorcut Menu Bar", and "Pop Up". I monkeyed around with
these to no avail... I set my form to Modal, but I don't see any way to
actually add a "menu" object to my form. Is this done in Code View? Is
this done in the "Macros", is this done in the Form Design view? There is
no menu object that I can find other than "IEPOP" in the "references..." and
so I don't know where to begin... I must be missing something very basic
here...

Any help, an example, a pointer to a url with a tutorial, anything would be
great.

Thanks!
chris
 
Unfortunately a form in Access is not the same as a form in VB. So no, you
cant add a menu to the form itself. But you can however customise the menus
on the Access toolbar to do almost anything you want, and have different
menus for each form, if you want to go that far. This gives you essentially
the same functionality.

To set your own menus, go to the Tools|Customise menu, and create a new
menu, then drag it to a new toolbar. Add whatever items you want to it from
the Customise dialog box. You can even call your own VBA routines directly
from the menu, just like you can in VB. The help file has a reasonable
explanation, but it takes a bit of playing around to get the hang of it.

Be aware that you can delete the main Access menu toolbar - good for
end-users, but its possible to do it and then leave no easy way for the
developer to get it back, and regain control of his application.

--
Regards,

Adrian Jansen
J & K MicroSystems
Microcomputer solutions for industrial control
 
Thank you thank you :) I'll give this a whirl and see what kind of trouble
I get myself into :)

I appreciate the explanation.
Chris
 
Back
Top