The information in this article applies to:
SYMPTOMS
If you use DDERequest to retrieve the Structured Query Language (SQL)
statement (QueryDefinition function) or the Open Database Connectivity
(ODBC) SQL Statement (ODBCSQLStatement function) from Microsoft Query, the
results may be truncated.
where <channel> is the dynamic data exchange (DDE) to Microsoft Query
channel variable.
WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspYou can avoid the truncation by using the following array form of these functions:
where <channel> is the DDE to Microsoft Query channel variable,
The array form of these functions parses the SQL statement into array elements. You can use the following Visual Basic for Applications code sample to place the SQL statement on a worksheet using the array form of these functions. Sample Visual Basic CodeBefore you run this subroutine, be sure that Microsoft Query 2.0 is open and you understand how to select a data source and return data to Microsoft Excel. If you have any questions regarding this topic, please see "Getting Started with Microsoft Office for Windows 95" and Microsoft Query Help.Type the following code in a module sheet:
STATUSAdditional query words: XL5 XL7 XL97 5.00c 8.00 97
Keywords : kbprg kbdta xlquery KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |