You receive a "There is no object in this control" error message when converting Access 2002 database to Access 97 (286345)
The information in this article applies to:
- Microsoft Access 2002
- Microsoft Access 97
This article was previously published under Q286345 For a Microsoft Access 2000 version of this article,
see
202312. Moderate: Requires basic macro, coding, and interoperability
skills. This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS After converting a Microsoft Access 2002 database to
Microsoft Access 97, you receive the following error message when you open a
form or report in the new Microsoft Access 97 database:
There is no object in this control. CAUSE The form or report contains one or more ActiveX controls.
The error occurs because Microsoft Access 2002 uses the IPersistStream
interface for inserting and storing ActiveX controls while Microsoft Access 97
uses the IPersistStorage interface, which contains the control's persistence
information. RESOLUTION To resolve the problem, follow these steps. NOTE: The following steps modify your Access 97 database, so you may
want to back up the database before proceeding.
- Start Access 97 and open the Access 97 database that was
converted from Access 2002. You receive the following message:
Microsoft Access has converted the code in 'drive:\path\filename.mdb' to your
current version of Visual Basic.
To improve the performance of the database, do the
following: 1. Open any module in the database in Design view. 2. On
the Debug menu, click Compile And Save All Modules. - Click OK.
- In Design view, open the form or report that contains the
ActiveX control.
You receive the following error message: There is no object in this control. - Click OK.
The form or report opens in Form view, and contains an
empty white control. - On the View menu, click Design View.
You receive the error message again. - Click OK.
The form opens in Design view. - Right-click the ActiveX control, and then click Properties on the shortcut menu.
- Make a note of the values assigned to certain properties,
especially properties such as:
Name
Enabled
Left
Top
Width
Height
and all Event properties. - Delete the ActiveX control and reinsert the ActiveX control
that is included with Access 97 (or Microsoft Office Developer Edition). For
example, if the form or report contains Calendar Control 10.0 for Access 2002,
delete the control, and reinsert Calendar Control 8.0 (the version that is
included with Access 97). To insert an ActiveX control, follow these steps:
- On the Insert menu, click ActiveX Control.
- Select the control that you want, and then click OK.
- View the properties of the newly inserted control and
reassign the values in step 8.
STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/24/2004 |
---|
Keywords: | kbconversion kbprb kberrmsg kbpending KB286345 |
---|
|