Application.hWndAccessApp method (Access)

Use the hWndAccessApp method to determine the handle assigned by Windows to the main Microsoft Access window.

Syntax

expression.hWndAccessApp

expression A variable that represents an Application object.

Return value

Long

Remarks

The hWndAccessApp method returns a Long Integer value set by Access and is read-only.

Use this method by using Visual Basic when making calls to Windows application programming interface (API) functions or other external procedures that require a window handle as an argument.

To get the handle to a window containing an Access object such as a Form or Report, use the hWnd property.

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.