E.21. The Screen Object
The Screen object refers to whatever form, report, or control currently has the focus within the application. You can use the Screen object and its properties to manipulate the active window no matter which form, report, or control is currently displayed.
E.21.1. Properties of the Screen Object
The properties of the Screen object are listed in the following table.
Property | Data Type | Description |
---|---|---|
ActiveControl | Control object | Specifies the control that has the focus |
ActiveDataAccessPage | DataAccessPage object | Specifies the data access page that has the focus |
ActiveDatasheet | Datasheet object | Specifies the datasheet that has the focus |
ActiveForm | Form object | Specifies the form that has the focus |
ActiveReport | Report object | Specifies the report that has the focus |
Application | Application objecr | References the current Access application |
MousePointer | Integer | Specifies the type of mouse pointer currently displayed |
Parent | Object | Parent of the object that currently has the focus |
PreviousControl | Control object | Specifies the control that previously had the focus |
Get Access 2003 VBA Programmer's Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.