Dates from MSQuery Not Returned to Excel 4.0 Using DDE

Last reviewed: September 12, 1996
Article ID: Q119096
The information in this article applies to:
  • Microsoft Excel for Windows, versions 4.0, 4.0a

SYMPTOMS

If you use a macro in Microsoft Excel version 4.0 to initiate a dynamic data exchange (DDE) conversation with Microsoft Query, and you return data from a query, information in a date column is not returned to the worksheet.

CAUSE

Because Microsoft Query ships with Microsoft Excel version 5.0 (and does not ship with earlier versions of Microsoft Excel), returning data from a query in Microsoft Query to a worksheet in Microsoft Excel version 4.0 is not supported. The behavior described above occurs because Microsoft Excel version 4.0 does not support returning dates using the DDE Date format. Microsoft Excel version 5.0 does support this DDE Date format.

MORE INFORMATION

You can use the Fetch.Advise command in a DDE conversation with Microsoft Query to return data from a query to the destination application. When you use this command in a macro in Microsoft Excel version 4.0, date values in the data you return do not appear on the destination worksheet. All other requested values appear correctly.

REFERENCES

For more information about Fetch And Fetch.Advise Commands (DDE), choose the Search button in Microsoft Query Help and type:

   Fetch commands


KBCategory: kbprg
KBSubcategory: xlquery

Additional reference words: 1.00 4.00 4.00a



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 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.