You may receive compile errors after you open or convert a database that has older DAO code in Access 2002 (313233)
The information in this article applies to:
This article was previously published under Q313233 Moderate: Requires basic macro, coding, and interoperability skills.
For a Microsoft Access 2000 version of this article, see 199064.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you open or convert a database that was created in a version of Access earlier than Access 2000, and you attempt to run or compile older code that uses Data Access Objects (DAO), you may receive compile errors.
CAUSE
This issue can occur because Access 2002 does not have compatibility type libraries.
RESOLUTION
To resolve this issue, update the code to the current DAO syntax. For example, rewrite the code to use the object Recordset instead of the Access version 1.0 object Dynaset.
For more information about and examples of how to update older DAO code, in the Visual
Basic Editor, click Microsoft Visual Basic Help on the
Help menu, type "DAO Object Library Compatibility" in the Office Assistant or
the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 8/18/2004 |
---|
Keywords: | kberrmsg kbprb KB313233 |
---|
|