hWndAccessApp Method [Access 2003 VBA Language Reference]

You can use the hWndAccessApp method to determine the handle assigned by Microsoft Windows to the main Microsoft Access window.

expression.hWndAccessApp

expression Required. An expression that returns one of the objects in the Applies To list.

Remarks

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

You can 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 a Microsoft Access object such as a Form or Report, use the hWnd property.

Applies to | Application Object

See Also | Application Object | Hwnd Property