Error Opening Access Database After Using It in Query


The information in this article applies to:


SYMPTOMS

When you create a query or open an existing query in Microsoft Query, using a Microsoft Access data source, and you then open the database in Microsoft Access that you used in the query, one of the following error messages will appear (even if the query is closed, if Microsoft Query is still running):

Microsoft Access version 2.0

The database is opened by user '<username>' on machine '<machinename>'.
You can't open this database exclusively.

Microsoft Access versions 1.x

Couldn't open file '<path><filename>'


CAUSE

You receive this error message if you open the database exclusively in Microsoft Access. Even though the query that used the Microsoft Access database is closed, a connection to the database still exists in Microsoft Query.


WORKAROUND

To avoid receiving this error message, when you open a database that has been used in query in Microsoft Query, do one of the following:

Note that this setting affects all data sources, not just Microsoft Access data sources.

Additional query words: 5.00 err msg

Keywords : xlquery xlwin
Version : WINDOWS:1.0,1.1,2.0
Platform : WINDOWS
Issue type :
Technology :


Last Reviewed: October 6, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.