Microsoft KB Archive/824270

= You receive a &quot;There is no object in this control&quot; error message when you open an Access 97 database that you converted from an Access 2003 database =

Article ID: 824270

Article Last Modified on 7/28/2006

-

APPLIES TO


 * Microsoft Office Access 2003
 * Microsoft Access 97 Standard Edition

-



This article applies only to a Microsoft Access database (.mdb).

Moderate: Requires basic macro, coding, and interoperability skills.



For a Microsoft Access 2002 version of this article, see 286345.



For a Microsoft Access 2000 version of this article, see 202312.



SYMPTOMS
Explains a problem that may occur when you convert an Access 2003 database to an Access 97 database. If you try to open a form or a report in the Access 97 database, you receive an error message. The problem occurs if the form or the report have an ActiveX control.

When you convert a Microsoft Office Access 2003 database to a Microsoft Access 97 database and then you open a form or a report in the new Access 97 database, you may receive the following error message:

There is no object in this control.



CAUSE
This bug occurs if the form or the report contains at least one Microsoft ActiveX control. Access 2003 uses the IPersistStream interface to insert and to store ActiveX controls. However, Access 97 uses the IPersistStorage interface that contains the persistence information to insert and to store ActiveX controls. The mismatch between the interface that Access 2003 uses and the interface that Access 97 uses causes the error that is mentioned in the &quot;Symptoms&quot; section of this article.



RESOLUTION
To resolve this bug, follow these steps.

Note The following steps modify your Access 97 database. Microsoft recommends that you back up your database before you continue.  Start Access 97. Open the Access 97 database that you converted from an Access 2003 database.

You receive the following message:

Microsoft Access has converted the code in ' :\ \ .mdb' to your current version of Visual Basic.

To improve the performance of the Access 97 database, follow these steps:  Open an available module in the Access 97 database in Design view. On the Debug menu, click Compile and Save All Modules. </li> Click OK.</li> Open a form that contains at least one ActiveX control.

You may receive the following error message:

There is no object in this control.

</li> Click OK.

When you click OK, the form opens in Form view. The form contains an empty white control for the ActiveX control.</li> On the View menu, click Design View.

You may receive the error message that is mentioned in step 4 again.</li> Click OK.

The form opens in Design view.</li> Right-click the ActiveX control, and then click Properties.</li> Notice the values that are assigned to the following properties: <ul> Name</li> Enabled</li> Left</li> Top</li> Width</li> Height</li> All Event properties</li></ul> </li> Delete the ActiveX control.</li> Re-insert the ActiveX control that is included with Access 97 or with Microsoft Office 97 Developer Edition.

For example, if the form or the report contains Microsoft Calendar Control 10.0 or a later version for Access 2003, delete the control and then re-insert Microsoft Calendar Control 8.0 (the version that is included with Access 97).

To insert an ActiveX control, follow these steps: <ol style="list-style-type: lower-alpha;"> <li>On the Insert menu, click ActiveX Control.</li> <li>In the Insert ActiveX Control dialog box, click the appropriate control on the list, and then click OK.</li></ol> </li> <li>View the properties of the new ActiveX control, and then assign the respective values to these properties based on your information from step 9.</li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> <li>Start Access 2003.</li> <li>Create a new Access 2003 database.</li> <li>In the Database window, click Forms under Objects.</li> <li>In the right pane, double-click Create Form in Design view.</li> <li>On the Insert menu, click ActiveX Control.</li> <li>Click to select Calendar Control 10.0 or a later version, and then click OK.</li> <li>Close the form. Save the form as Form1.</li> <li>In the Database window, point to Database Utilities, point to Convert Database, and then click To Access 97 File Format on the Tools menu.

Note You may receive the following message:

Saving the database to the previous version of Access will create a new database that contains none of the security information that you have set. Are you sure you want to proceed?

Click Yes.</li> <li>In the Convert Database Into dialog box, type the appropriate file name for the new Access 97 database, and then click Save.

Note After this conversion, you receive the following message:

After you have converted this file to Access 97 File Format, any functionality specific to Access 2000 or Access 2002 or later will be lost.

For more information about conversion, click Help.

Click OK.</li> <li>Start Access 97.</li> <li>Open the Access 97 database that you created.</li> <li>Open Form1.

When you try to open the form, you receive the error message that is mentioned in the &quot;Symptoms&quot; section of this article.</li></ol>

Additional query words: ACC2003

Keywords: kbdatabase kbconversion kberrmsg kbbug KB824270

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.