MSQUERY: Application Error With Microsoft Access ODBC Driver

ID: Q149773


The information in this article applies to:


SYMPTOMS

If you use DDERequest to retrieve a list of tables from a Microsoft Access database, you may receive one of the following error messages, depending on which version of Microsoft Excel and Microsoft Query you are using:

Microsoft Excel version 5.0 or 5.0c and Microsoft Query version 1.0

MSQUERY caused a general protection fault in module MSQUERY.EXE at 0017:00003537

Microsoft Excel version 7.0 and 7.0a and Microsoft Query version 2.0

MSQRY32 caused an invalid page fault in module MSQRY32.EXE at 0137:0047e661


CAUSE

You may experience this behavior, if the following is true:


WORKAROUND

You can avoid the error symptoms by leaving the User argument blank. The Table data will be returned based upon the currently connected User:

<Table Array> DDERequest(<Channel>, _ "Tables/<DataSourceName>//<Database>"

where <Table Array> is the name of the variable assigned to hold the returned value, <Channel> is the DDE to Microsoft Query channel variable, <DataSourceName> is the specified Data Source Name, and <Database> is the specified Database Name.

If you use a Table Array variable of TableArray, a Data Source Name of "Access 7.0 NWind", and a Database Name (location) of C:\Msoffice\Access\Samples\Northwind, then the DDERequest statement would look similar to the following:

TableArray = DDERequest("Access 7.0 NWind"// _ & "C:\MSOFFICE\ACCESS\SAMPLES\NORTHWIND")




REFERENCES

For additional information about the syntax of this DDERequest statement, see the "Microsoft Query 1.0 User's Guide," Chapter 9, "Using Dynamic Data Exchange with Microsoft Query."

Additional query words: XL5 XL7 5.00a 5.00c 7.00a


Keywords          : xlquery 
Version           : 1.00 2.00
Platform          : WINDOWS 
Issue type        : 

Last Reviewed: April 22, 1999