ACC1x: "Database Already in Use" Error After Running QueryID: Q109353
|
You 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.
To 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.
Microsoft 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.
If 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.
Field Type
--------------------
f1 text
f2 text
f3 text
z1 long integer
Field Type
--------------------
f4 text
f5 text
z2 long integer
SELECT DISTINCTROW Table1.f1, Table1.f2, Table1.f3, Table1.z1
FROM Table1
GROUP BY Table1.f1, Table1.f2, Table1.f3, Table1.z1
WITH OWNERACCESS OPTION;
SELECT DISTINCTROW Query1.f1, Query1.f2
FROM Query1, Table2,
Query1 INNER JOIN Table2 ON Query1.z1 = Table2.z2
WITH OWNERACCESS OPTION;
Additional query words: Queries
Keywords : kbusage QryOthr
Version : 1.0 1.1
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 30, 1999