ACC: How to Dim (Gray) Menu Items with Access Basic (88940)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q88940 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
Access Basic does not have a command that enables you to make unavailable
(to dim or gray) a menu item. There are also no form properties that
enable you to set this menu characteristic. However, you can use Windows
application programming interface (API) functions to change such menu item
characteristics.
NOTE: In Microsoft Access for Windows 95 version 7.0, you can accomplish
this task by using a macro or by using Visual Basic for Applications. For
more information about making a menu item unavailable, search for
"SetMenuBar action," and then "Make a custom menu commands appear dimmed
or selected" using the Microsoft Access for Windows 95 Help Index.
NOTE: These API functions will only work for custom menus created with
macros. They will not work for the default Microsoft Access menus. This
technique will also not work for custom menu items created with the
DoMenuItem action. For example, if you add a command to the menu with the
DoMenuItem action and specify the PrintPreview arguments for the action,
Microsoft Access overrides any API function that you write to check or to
dim this menu command.
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbhowto kbProgramming KB88940 |
---|
|