ACC: How to Use In-Place Activation with OLE ObjectsLast reviewed: April 2, 1997Article ID: Q112748 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. Microsoft Access supports in-place activation of OLE objects in a form's Form view. In a form or report's Design view, or in a table, query, or form's Datasheet view, activation of an OLE object will cause the object's original application to run in the background as a server application (if the original application is available), so you can edit the object in Microsoft Access.
MORE INFORMATIONIn-place activation of an OLE object allows you to edit or otherwise manipulate the object without switching to the object's original application. For example, you could edit an embedded document that was created in Microsoft Word for Windows without having to start Word for Windows. When you edit an OLE object in place, the object's border becomes a hatched frame and the menus and menu options supported by the object's original application are added to the standard Microsoft Access menus. Toolbars supported by the object's original application may also be displayed. The object's original application runs in the background and supplies the functionality it supports for the object, but the application is not visible and does not appear in the Windows Task Bar. For an OLE object to be activated in place, the following must be true:
Microsoft Access can't save your changes to this bound OLE object because you don't have permission to write to the record in which the object is stored or the record is locked by another user.If the object is linked, you can activate it in place, but you cannot edit it in place. The AutoActivate property controls how an object is activated. The default value is Double-Click, which allows you to double-click the object to activate it. If you set the property to Manual, you have to select the object, choose <object type> from the Edit menu, and then choose the first verb listed to activate it. Setting AutoActivate to GetFocus (available only in unbound object frames) forces activation of the object when it receives focus on the form. The following is an example of how to create an OLE object that supports in-place activation:
REFERENCESFor more information about in-place activation, search the Help Index for "in-place," or ask the Microsoft Access 97 Office Assistant. For more information about whether or not a specific object application supports in-place activation, refer to that application's documentation.
|
Additional query words: interoperability ole embedding
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |