You receive a "There is no object in this control" error message when you open an Access 97 database that you converted from an Access 2003 database (824270)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 97
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. SYMPTOMSExplains 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. CAUSEThis 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 "Symptoms" section of this article.RESOLUTIONTo 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
'Drive:\Path\File
Name.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.
- Click OK.
- Open a form that contains at least one ActiveX control.
You may receive the following error message: There is no object in this control. - Click OK.
When you click
OK, the form opens in Form view. The form contains an empty
white control for the ActiveX control. - On the View menu, click Design
View.
You may receive the error message that is mentioned in
step 4 again. - Click OK.
The form opens in
Design view. - Right-click the ActiveX control, and then click
Properties.
- Notice the values that are assigned to the following
properties:
- Name
- Enabled
- Left
- Top
- Width
- Height
- All Event properties
- Delete the ActiveX control.
- 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:
- On the Insert menu, click
ActiveX Control.
- In the Insert ActiveX Control dialog
box, click the appropriate control on the list, and then click
OK.
- View the properties of the new ActiveX control, and then
assign the respective values to these properties based on your information from
step 9.
STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are
listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/28/2006 |
---|
Keywords: | kbDatabase kbconversion kberrmsg kbbug KB824270 kbAudDeveloper |
---|
|