Using Homemade Accelerator Keys in Restricted EnvironmentsNow that you've gone to all the trouble of disabling a combination of the database window, menus, toolbars, shortcut menus, and the special keys from the database, you'll probably find that it's difficult to develop and administer your database. To assist you with these tasks, I have deliberately set up the frmStartupProperties form in such a manner that you can easily use it to modify the startup properties in your database (and modify them back again). You can augment this form by allocating your own accelerator key sequences to open this form. Another accelerator key sequence that is described below will allow you to open any form or report in the database in design view without having a design view menu or toolbar option. To do this, build a macro that stores all your database accelerator keys:
Now if you want to use accelerator keys to open the frmStartupProperties demonstration form in your database, all you need to do is import the form and the Autokeys macro into your database. If you set the AllowBypassKey property to False, you can still open the frmStartupProperties startup options form by using the CTRL+Q key sequence. Test the accelerator keys and demonstration form before setting the AllowBypassKey property to False. |