ACC95: Incorrect Word DDE Example in Building Applications

Last reviewed: June 3, 1997
Article ID: Q153465
The information in this article applies to:
  • Microsoft Access version 7.0

SYMPTOMS

Advanced: Requires expert coding, interoperability and multi-user skills.

The Word Basic sample procedure on page 290 of the "Building Applications with Microsoft Access for Windows 95" manual does not properly create the Mydata.txt text file.

CAUSE

The Mydata.txt text file is created incorrectly because of a misspelled variable, strData. This causes a "0" to appear in the text file instead of the actual data from the correct variable, strData$.

RESOLUTION

This article assumes that you are familiar with Word Basic and with creating Microsoft Word documents using the programming tools provided with Microsoft Word.

Change the following line in the sub MAIN procedure

   Print #1, strData

to read as follows:

   Print #1, strData$

REFERENCES

For more information about using DDE, search on the phrase "DDE Server" using the Answer Wizard from the Microsoft Access for Windows 95 Help menu. Select and then view "Using Microsoft Access as a DDE Server."


Keywords : DcmMnl IntpDde kbinterop
Technology : kbole
Version : 7.0
Platform : WINDOWS
Hardware : X86
Issue type : kbdocerr


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: June 3, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.