In the next chapter, we will look at how you can add custom menus and toolbars to your Access database to replace the rather powerful menus that are bundled with Access. This important phase in the development of your database indicates that you can start to remove the complexity from your application. Though developers are usually very entertained by the prospect of hundreds of features, giving end users more than a few options will serve only to confuse them and increase your training costs. Menus also provide added protection to objects and data in your database. Naturally, as soon as you put a menu in place, the developer and the database administrator are going to want to do something more powerful than your own
Toolbars and menus allow Access users and developers flexible access to all the built-in menu items and, indirectly, to any objects in your database. Though this flexibility is good for a developer's productivity, it is not
This chapter teaches you first how to build menus and toolbars. Included are plenty of pictures of all the tricky graphical steps that are required. Once you understand how to build toolbars, you will then learn how to apply those toolbars to your database using either form and report properties or the Access startup options. If you combine these skills, you will have a database that is both simple to use and hard for most users to crack. In addition, because users will not see the developer-specific toolbar and menu commands, there will be little visual incentive for your users to wander about your application. To conclude the discussions, the chapter shows you how you can permanently disable the developer-specific commands on end-users' computers.
The demonstration material for this chapter includes a number of forms and Visual Basic for Applications (VBA) examples:
A form to change the default toolbar and shortcut menu for all forms.
A form to change the default toolbar and shortcut menu for all
A form to disable developer-
Code to find all the custom menus and toolbars in a database.
Code to find all the menu items on a menu.
| Note |
To find the demonstration material,
|
Menus, toolbars, and the way that they are applied are important cogs in the overall protection of your Access database. Because different audiences will read this chapter, I provide alternative overviews about the important issues covered in this chapter because people in each of these categories will approach the chapter in a different way.
Access menus and toolbars are a good way both to protect your database and to make it simpler to use. Your developer or DBA can produce simple custom menus and toolbars at a low cost by using the top-level forms in your database and a subset of the commands that Microsoft
Creating Access toolbars and menus is not a difficult skill to master, and you can use them to provide a consistent and easy interface for your database users. DBAs should first become familiar with the basics of toolbar design because you can use custom toolbars and menus across all your databases. Once these skills are mastered, DBAs should review in detail the effect of the five toolbar-specific Access startup options. Finally, DBAs should discuss with management whether disabling Access menu options permanently is appropriate for some of your Access users.
Getting started with toolbars and menus in an Access database is all about understanding the little tricks. That mastered, the

Microsoft Access Small Business Solutions: State-of-the-Art Database Models for Sales, Marketing, Customer Management, and More Key Business Activities

Access Solutions: Tips, Tricks, and Secrets from Microsoft Access MVPs

Building Microsoftu00ae Access Applications (Bpg Other)

VBA Developer's Handbook, 2nd Edition