Expand Minimize

CustomControl.VarOleObject Property (Access)

Gets a pointer to an IOLEObject that represents the memory address of an OLE object. Read-only Variant.

Version Added: Access 2010

expression .VarOleObject

expression A variable that represents a CustomControl object.

Note Note

The VarOleObject property is compatible with 32-bit and 64-bit OLE objects. It replaces the LpOLEObject, which was available in earlier versions of Microsoft Access.

You can use the VarOleObject property to refer to the address of the active OLE object. If no object is displayed, the setting is 0.

This property setting is not available in Design view and is read-only in other views.

In the OLE dynamic link libraries (DLLs), many function calls require the address of the OLE object as an argument. You can pass the value specified by the VarOleObject property when you make application programming interface (API) calls to the OLE DLLs.

If an API call is made to a function that performs a callback to the control, the results are unpredictable.

Show:
© 2014 Microsoft