experience,with,menus,been,Visual,Basic,Both,
Quick Search for:  in language:    
experience,with,menus,been,Visual,Basic,Both,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
SQL Stats

 Code: 31,327 lines
 Jobs: 372 postings

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for SQL.
Unix Date Convertor Function
By George Graff on 10/23


Insert pipe delimited rows into multiple rows.
By Charles Toepfer on 10/21


Logfiles by PL/SQL
By Stephan Rechberger on 10/21


To display a name in a default language if the given one doesn't exist
By Serge Alard on 10/18


Order by column except a few values
By Serge Alard on 10/18


Introduction to PL/SQL (Series 3) Cursors
By David Nishimoto on 10/14


Sorting a String using T-SQL
By Gaurav Pugalia on 10/12


Protecting against TSQL virii, worms and time bombs
By Joseph Gama on 10/11


Click here to see a screenshot of this code!Get size in bytes of SP, View, Trigger, UDF or Rule
By Joseph Gama on 10/11

(Screen Shot)

Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

How to Create menus/submenus using Access 2000

Print
Email
 

Submitted on: 8/27/2002 2:11:34 PM
By: David Nishimoto 
Level: Intermediate
User Rating: By 2 Users
Compatibility:SQL Server 7.0, SQL Server 6.5 and earlier

Users have accessed this article 1291 times.
 
(About the author)
 
     My experience with menus has been with Visual C++ and Visual Basic. Both Visual Basic and Visual C++ have wizards helping the developer easily create menu items and subitems attaching code for onclick events. However, Access 2000 does not. Access 2000 menus are easy once you understand the manual steps. This article will walk you step by step through creating an Access 2000 menu.

 
 
Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
David Nishimoto
davepamn@relia.net
Article: How to Create menus using Access 2000

Overview of Menus: My experience with menus has been with Visual C++ and Visual Basic. Both Visual Basic and Visual C++ have wizards helping the developer easily create menu items and subitems attaching code for onclick events.However, Access 2000 does not. Access 2000 menus are easy once you understand the manual steps. This article will walk you step by step through creating an menu.

Creating the your application_menu

1. Click "View", "Toolbars", "Customize"
Customize has three tab buttons: toolbars, commands, and options
2. From the toolbars tab press the "new" button
3. A popup dialog box will appear requesting a toolbar name, enter "myApplicationMenu"
4. A menu dialog will appear

Create your macros your Application Forms and Reports

1. Create Macro for forms and reports now because the menu items or submenu items will run these macros.
2. Use either OpenForm or OpenReport and initialize the command with the form name.

Adding Menu Items

1. Click the "commands" tab from the Customize Dialog
2. The commands tab has two listboxes: Categories and Commands.The order of operation requires you to select a category and drag and drop a command on the menu dialog.
3. Lets do it. Click Category: File and Command: Custom. Hold the right mouse button down and drag and drop the command into the menu dialog.You'll notice a menu item name custom appears.
4. Change the Menu name, by right clicking over the menu item. A popup dialog will appear, change the name to a form or report name.Support the forms name is, "ABC Form". The name now will have "ABC Form". Another way to make the name change is to select the properties item.
5. The properties dialog has the following textboxes:
	Caption: The display information of the menu item
	ScreenTip: On hoover tooltip
	OnAction: Select the macro of the form or report you want to launch on a Onclick event
	Style: Text Only or Image and Text
	HelpFile: The filename of the helpfile
	HelpContextId: Context Sensitive help
	Parameter: Value passed by the menu item.
	Tag: Information that can be used later in the procedure event

Adding Submenus

This requires dragging and dropping two category types: new menu and file categories.
The new menu creates a parent menu item and the file category create submenu types.
This is a little tricky so hopefully my steps will be clear enough for you to accomplish this task.
1. Select new menu from the categories and new menu from the command.
2. Drag and Drop the menu item onto the menu dialog
3. Select file from the categories and custom from the command
4. Drag and Drop the submenu item onto the "New menu" item. The trick is not to drop
the submenu item onto the menu item, but put is in the drop down box below the menu item. This seems simple, but it took me about five minutes to figure that out.
5. Using the properties popup change the menu and submenu names and OnAction events.
6. Close the Customize Dialog
7. Drag and Drop the menu dialog onto the toolbar.

Activitating or DeActivitating custom menus

1. The custom dialog is used to activate or deactivate toolbar menus.
2. The custom must be open in order to change menu items through the properties dialog.


Other 9 submission(s) by this author

 

 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this article(in the Intermediate category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
9/9/2002 10:03:36 PM:Freddy Siburian
it's a great article.. thank's for your code... see you later
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this article has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular article, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | SQL Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.