ACC2: Cannot Embed OLE Objects Using Access Basic CodeLast reviewed: June 8, 1997Article ID: Q120262 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. You can use Access Basic code to embed one OLE object in a bound control on a form successfully. However, subsequent OLE objects that you try to embed with Access Basic code are visible in the form, but are not saved when you save the record.
CAUSEYou are not moving the focus in your Access Basic code to the OLE controls in which you are trying to embed objects.
RESOLUTIONSet the focus in your Access Basic code to subsequent OLE controls before saving the record.
STATUSThis problem no longer occurs in Microsoft Access version 7.0.
MORE INFORMATION
Steps to Reproduce Behavior
Sub Form1_Load Me![OLE1].SourceDoc = "c:\windows\arcade.bmp" Me![OLE1].Action = OLE_CREATE_EMBED Me![OLE2].SourceDoc = "c:\windows\arcade.bmp" Me![OLE2].Action = OLE_CREATE_EMBED Me![OLE2].Setfocus End Sub REFERENCESMicrosoft Access "User's Guide," version 2.0, Chapter 19, "Using Pictures, Graphs, and Other Objects," pages 470-481 Microsoft Access "Building Applications," version 2.0, Chapter 4, "Adding and Editing Data," pages 64-65
|
Additional query words: link
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |