ACC2000: Errors Caused by Strong Typing in Microsoft Access 2000 (202352)
The information in this article applies to:
This article was previously published under Q202352 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
SYMPTOMS
In Microsoft Access 2000, you may receive one of the following error
messages when you try to set or use some form and report properties in your database:
Run-time error '13':
Type mismatch
Run-time error '94':
Invalid use of Null
NOTE: The same action that causes the error message in Access 2000 may not produce an error in earlier versions of Access.
CAUSE
Some properties that returned values of the Variant data type in earlier
versions of Microsoft Access are strictly typed as non-Variant data types
in Microsoft Access 2000.
RESOLUTION
Verify that no errors exist in your application by doing the following:
- Compile and save all modules in your database. To compile your database and its modules, follow these steps:
- In the Database window, click Modules.
- On the View menu, click Code.
- On the Debug menu, click Compile MyDatabase. If this option is not available, it means that your database is already compiled and the modules have been saved.
- Check for run-time errors when you run your code.
REFERENCESFor more information about strong or strict typing, click Microsoft Access Help on the Help menu, type i'm getting a type mismatch message in the Office Assistant or the Answer Wizard, and then click Search to view the topic. For more information about data types, click Microsoft Access Help on the
Help menu, type type property in the Office Assistant or
the Answer Wizard, and then click Search to view the topics
returned. For additional information about strong typing and other issues related to converting databases from earlier versions of Microsoft Access, click the article number below
to view the article in the Microsoft Knowledge Base:
237313 ACC2000: Conversion White Paper Available in Download Center
Modification Type: | Major | Last Reviewed: | 6/29/2004 |
---|
Keywords: | kbprb KB202352 |
---|
|