ADT/ODE: OLE Controls Appear Blank in Run-Time ApplicationsLast reviewed: October 20, 1997Article ID: Q129303 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. When you insert an ActiveX control in an application in the retail version of Microsoft Access, the control may appear blank when you run the application as a run-time application. You may also receive the error message "There is no object in this control." NOTE: This behavior will also occur if you make a copy of an ActiveX control that already exists on a form.
CAUSEThe ActiveX control may be blank or you may receive the error message if you do not specify the ActiveX control (*.OCX) file in the Setup Wizard on the screen marked "Add the files that you want your custom Setup program to copy and then set properties for each file." (Or in the Files To Include dialog box in Microsoft Access Developer's Toolkit 2.0 and 7.0) The Microsoft Access Developer's Toolkit (ADT) documentation does not clearly state that you must specify the .OCX file when you use the Setup Wizard. NOTE: The Microsoft Office 97 Developer Edition Tools Help topic, "Adding ActiveX Controls to Your Custom Setup Program," explains the relationship between the ActiveX control and its associated .OCX file.
RESOLUTION
In the ODE Setup WizardWhen you add an ActiveX control on the Add Files page, the Setup Wizard searches for the .dep file for this control. If it finds the .dep file, the Setup Wizard automatically adds the supporting files specified in the .dep file to the list of files on the Add Files page. If the Setup Wizard can't find a .dep file for the control, or if it can't find one of the supporting files specified in the .dep file, an error message is displayed. If the ActiveX control doesn't have a .dep file, and you know what files are required to use the control, you have to add the .OCX file and the supporting files directly on the Add files page of the Setup wizard.
In the ADT Setup WizardWhen you specify the control's .OCX file, the Setup Wizard specifies which dependent dynamic-link libraries (DLLs) to include. Once you include them, these two files properly register the OLE control in all run-time applications.
MORE INFORMATIONSome run-time applications may properly display the OLE control on computers that already have the ODE or ADT installed. This depends on whether that control has previously been registered correctly on that computer. Registration can occur manually or through the installation of programs such as the ODE or ADT. These configuration variables can account for the intermittent nature of this behavior.
Steps to Reproduce Behavior
Keywords : StpReg kberrmsg kbsetup Version : 2.0 7.0 97 Platform : WINDOWS Hardware : x86 Issue type : kbprb |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |