Article ID: 927678 - Last Review: October 15, 2007 - Revision: 1.3 Error message when you convert a database file from an earlier version of Access into an Access 2007 file: "Run-time error '13': Type mismatch"On This PageSYMPTOMSWhen you convert a database file from an earlier version of Microsoft Access into a Microsoft Office Access 2007 file, the application may stop responding if you try to run or compile code that uses Data Access Objects (DAO). Additionally, you may receive the following error message: Run-time error ‘13’:
Type mismatch CAUSEThis problem occurs because the order of database references is not preserved when the database file is converted. WORKAROUNDTo work around this problem, use one of the following methods: Method 1In the References dialog box, make sure that Microsoft Office 2007 Access database engine Object Library is higher in priority than Microsoft ActiveX Data Objects. To do this, follow these steps:
Method 2If you must reference and use both DAO and ActiveX Data Objects (ADO) object libraries, dimension the objects explicitly as follows:Method 3If you are not using an ADO object library, clear the reference to the library. To do this, follow these steps:
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
| Article Translations
|
Back to the top
