ACC1x: "Database Already in Use" Error After Running QueryLast reviewed: July 18, 1997Article ID: Q109353 |
The information in this article applies to:
SYMPTOMSYou receive the error message "Couldn't use '<database name>'; database already in use" when you close a database after running a query containing a subquery or crosstab query based on an empty table or another query. You must quit Microsoft Access and restart it in order to restore proper operation. In some cases, the database may become corrupted, and may result in a database that remains corrupted even after you run the Repair Database command and receive notification that the database was repaired successfully.
RESOLUTIONTo work around this problem, add some records to the empty underlying table. Or, you can use a DLookUp() function to make sure all referenced tables contain records before running the query.
STATUSMicrosoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.
MORE INFORMATIONIf a parameter query is the subquery for a query, and you do not enter anything in the parameter box, the subquery will return an empty set, and will cause the error stated above.
Steps to Reproduce Problem
|
Additional query words: Queries
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |