ADT/ODE: OLE Controls Appear Blank in Run-Time Applications (129303)
The information in this article applies to:
- Microsoft Access Developer's Toolkit 2.0
- Microsoft Access Developer's Toolkit 7.0
- Microsoft Office 97 Developer Edition
This article was previously published under Q129303 SYMPTOMS
Advanced: 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.
CAUSE
The 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.
RESOLUTIONIn the ODE Setup Wizard
When 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 Wizard
When 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.
Modification Type: | Major | Last Reviewed: | 11/14/2003 |
---|
Keywords: | kberrmsg kbprb kbsetup KB129303 |
---|
|