ACC: Cannot Reference OLE Control in Datasheet ViewLast reviewed: July 1, 1997Article ID: Q131934 |
The information in this article applies to:
SYMPTOMSModerate: Requires basic macro, coding, and interoperability skills. When you reference a form's OLE control in an expression or a procedure, you may receive the following error message.
In Microsoft Access 97
Run-time error '2771': The bound or unbound object frame you tried to edit doesn't contain an OLE object. Use the Object command on the Insert menu to add an OLE object to the bound or unbound object frame. In Microsoft Access for Windows 95 version 7.0
The unbound or bound object frame you tried to edit doesn't contain an OLE object. In Microsoft Access version 2.0
Can't obtain this property setting. The property may not be available in this view, or an error may have occurred. CAUSEWhen a form is open in Datasheet view, you cannot reference the form's unbound OLE control.
RESOLUTIONDo not reference OLE controls in forms that are displayed in Datasheet view. NOTE: You can check a form's CurrentView property setting to determine whether the form is displayed in Datasheet, Form, or Design view.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access 2.0, 7.0, and 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Problem
REFERENCESFor more information about the CurrentView property, search the Help Index for "CurrentView Property," or ask the Microsoft Access 97 Office Assistant.
|
Additional query words: ocx custom control activex control
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |