ACC: How to Use Code to Deselect Records in a FormLast reviewed: May 14, 1997Article ID: Q128257 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article describes how to use Visual Basic for Applications code (or Access Basic code in version 2.0) to deselect the records that have been selected in a form using the record selectors.
MORE INFORMATIONTo deselect the selected records, use the following statement:
Screen.ActiveControl.SetFocusAlthough you may have selected multiple records in a form, there is still one active control in the form. Setting the focus to the active control is equivalent to pressing the TAB key or using the mouse to select the active control, which removes the current selection of records. The following example demonstrates how you can use this statement to prevent a user from selecting multiple records on a form.
REFERENCESFor more information about the Screen object, search the Help Index for "Screen object."
|
Additional query words: select de-select
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |