FIX: Jet DROP TABLE with Non-Existent Table Name Returns Wrong Error Code (253857)
The information in this article applies to:
- Microsoft Access 2000
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q253857 SYMPTOMS
When you try to drop a non-existent table using DAO 3.5, you receive the following error message:
3376 Table <name> doesn't exist.
When you try to drop a non-existent table using DAO 3.6, you receive a different error message:
3371 Can't find table or constraint.
CAUSE
The first (more generic) message above is a side-effect of changing Microsoft Jet to allow dropping multiple tables at once.
RESOLUTION
Upgrade to Microsoft Jet 4.0 SP4 or later.
STATUS
This has been fixed so that when dropping a single table and the name does not exist within the database, the old error message is given. However, if dropping multiple tables, and one or more do not exist, the new error message is given.
Modification Type: | Minor | Last Reviewed: | 7/14/2004 |
---|
Keywords: | kbbug kbfix kbJET KB253857 |
---|
|