The information in this article applies to:
SYMPTOMS
When you use DDE with Microsoft Query, the FieldDef request item should
return a two-dimensional array, where each row of the array describes a
field in the query. The expected array should be n rows by 5 columns (where
n is the number of fields in the result set). However, if the result set
contains only one field, a DDE request for the FieldDef item will return a
one-dimensional array that has dimensions of 5 rows by 1 column rather than
a two-dimensional array that has dimensions of 1 row by 5 columns.
STATUSMicrosoft has confirmed this to be a problem with Microsoft Query. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATIONMicrosoft 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.asp Sample Visual Basic ProcedureThe following is an example of a Microsoft Visual Basic for Applications macro that uses DDE with Microsoft Query and displays all of the field names in the result set created in Microsoft Query.
NOTE: To use this macro example with Excel 5.0 for the Macintosh, replace
the macro line
with:
REFERENCES
"Microsoft Query User's Guide," Chapter 9
Q163435 VBA: Programming Resources for Visual Basic for Applications Additional query words: MSQuery querry w_exceL m_excel
Keywords : kbcode kbinterop kbprg IntpDde PgmHowto |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |