Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create a menu??

Status
Not open for further replies.

OhioSteve

MIS
Mar 12, 2002
1,352
US
I am trying to create a new menu on a new menubar. So far I have done these things:

1. I right-clicked the normal menu and selected "customize".
2. On the toolbars tab I clicked the "new" button. The toolbar appeared on the toolbars tab.
3. On the toolbars tab I clicked "properties". I set the type to "menu bar" and named the menu bar "myMenuBar".
4. On the commands tab I selected "new menu". Then I grabbed the new menu onto the menubar.
5. I right-clicked the new menu and renamed it.

After that I am CLUELESS. I can't determine how to add any choices to the menu. I have poked everywhere, typed everywhere....nothing seems to work.

Please advise.


 
If you searched the Access forums, you'd find this has been answered before. But here's the steps again:

A)Create a Menu bar first
a.Click View, slide to Toolbars and click on Customize
b.Click the New button
c.In theToolbar Name box, type in a name (such as the database name) for your Menu bar
d.Move the blank new menu bar out of the way of the customize window.
e.In the Customize box, click the Properties button
f.In the Type box select Menu Bar
g.Click the Close button

B)Add some built in menus to your customize bar
a.In the customize dialog box, click the Commands tab
b.Select Built-in Menus in the Categories list
c.In the Commands list, click the File menu entry and drag it to your bar
d.Drag the Edit menu from the Commands list to your bar
e.Drag View, Records, Window and Help to your bar

C)Add your own version of the Tools Menu
a.In the Categories list, click New Menu
b.In the Commands list click New Menu and drag it to your bar
c.Right click the New menu , select the existing text in the Name box and type &Tools and then press enter
d.At the top of the Access window click the Tools menu.
e.Hold down the CTRL key and click the Spelling command. Drag it down to the Tools menu on your bar and drop it in the blank dropdown menu.
f.Repeat to bring the Autocorrect and Options submenus down to your bar.
g.With the right mouse, click the Options command on your menu and then click Begin A Group.

D)Add Another menu to your bar
a.In the Categories list, click New Menu
b.In the Commands list, click New Menu and drag the text to your bar
c.Right click the New Menu on your bar and in the Name box call it something pertaining to the database

E)Add custom menu commands to open forms in your application
a.In the Customize dialog box, click the Commands tab
b.Select All Forms from the categories list
c.In the Commands list, drag a form name to your new menu on your menu bar and drop it off. If you want to change the name to something more user friendly, right click it and type the name in the Name box
d.Let's say the form finds a record of some type. You want to put an Icon on the menu bar. Steal the binoculars from the Find command by doing the following: Right click the Find button and then click Copy Button Image. Then click your menu and right click and click Paste Button Image.
e.Repeat above steps for the forms you want to use.

F)Tell your Form to use the created Menu bar
a.Drag the new menu bar to the top and dock it.
b.In the Customize dialog box, click the Toolbars tab and click on the check next to your new menu bar to hide it. You only want it to show when your form is opened.
c.Close the Customize window.\
d.Go to the Design view of your form and open the forms Property Sheet.
e.Click the Other tab of the sheet
f.Set the MenuBar Property to your menu bar.
g.Click the form view and check to see if it worked.
 
How are ya OhioSteve . . .

Have a look here: Custom Menus, Toolbars and Pop-Up Menus

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top