MSQuery: Microsoft Query Error Message "Cannot Access Table"

Last reviewed: September 13, 1996
Article ID: Q107835
The information in this article applies to:
  • Microsoft Query for Windows, version 1.0
  • Microsoft Query for Windows 95, version 2.0

SUMMARY

If you attempt to access a dBASE table from Microsoft Query when the file name extension of the dBASE file has been changed to something other than .DBF, you will receive the following error message

   Cannot Access Table <path\file name>

where <path\file name> is the full path and file name of the table you want to open.

MORE INFORMATION

This error message occurs when file names are filtered by the common dialog dynamic link library (COMMDLG.DLL).

In Microsoft Query, when a file name ends with an extension other than .DBF, Microsoft Query executes the ODBC SQLColumns function on that file. If you manually change the filter in the Add Tables dialog box to All Files (*.*) and then attempt to open a file, Microsoft Query will use the SQLColumns function to send that file name. Sending the file name this way results in the NO_DATA_FOUND error. This ODBC error results in the error message "Cannot Access Table".

To avoid this error, make certain all .DBF tables end with a .DBF extension.


KBCategory: kb3rdparty kbinterop kbusage kbtool
KBSubcategory: xlquery

Additional reference words: 1.00 5.00 7.00 excel



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 13, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.