Access Tip of the Day |
|||
Assign a control as a form's default action button (Access 97/2000/2002) When you create forms, you may want them to perform a default action when a user presses the [Enter] key. For example, you may want pressing [Enter] to close the form, save a record, or abort a process by default. Assigning a default command button action that should be performed is especially helpful when a form contains several buttons. It's easy to designate the command button that should be associated with the [Enter] key. Simply set the button's Default property to Yes. Note that doing so does not set focus to the control when you view the form. Likewise, if another command button has focus, pressing [Enter] executes that button's code. However, assuming no other command button has focus, pressing [Enter] will perform the action linked to whatever button is flagged as being the form's default. (Content provided by Element K Journals) (Note: Your browser is set to refuse cookies. As a result, you may frequently see previously-viewed tips)
|
|||
Copyright © 2001 - 2025 MJ Technologies, LLC. All rights reserved. | |||