ACC: "Syntax Error in String" Error Using DDE() and DDESend()Last reviewed: August 29, 1997Article ID: Q105658 |
The information in this article applies to:
SYMPTOMSAdvanced: Requires expert coding, interoperability, and multiuser skills. When you enter either the DDE() or the DDESend() function in the ControlSource property of a text box on a form, you may receive the following error message:
In Microsoft Access for Windows 95 version 7.0: The expression you entered has an invalid string In Microsoft Access version 2.0: Syntax error in stringThis article assumes that you are familiar with Visual Basic for Applications and with creating Microsoft Access applications using the programming tools provided with Microsoft Access. For more information about Visual Basic for Applications, please refer to the "Building Applications With Microsoft Access For Windows 95" manual. NOTE: Visual Basic for Applications (used in Microsoft Access for Windows 95 version 7.0) is called Access Basic in version 2.0. For more information about Access Basic, please refer to the "Building Applications" manual.
CAUSEA reference to another control is being used for the application or topic argument in the function. Note that you can successfully include a control reference for the item or data argument.
RESOLUTIONThe following example demonstrates how to create and use the sample Visual Basic for Applications or Access Basic functions newDDE() and newDDESend() in place of the DDE() and DDESend() functions:
STATUSThis behavior is by design.
MORE INFORMATIONWhen the form is opened, Microsoft Access immediately establishes a DDE channel to the other application. This link uses the application and topic arguments in the function. The channel is kept open until the form is closed. Because the channel is open, the arguments necessary for opening the channel cannot be altered. Microsoft Access does not open a new channel whenever it needs to call or refresh the control with the DDE() or DDESend() function. Doing so would impose significant overhead and could result in performance degradation.
Steps to Reproduce Behavior
REFERENCESFor more information about sharing data between applications, search for "dynamic data exchange (DDE)," and then "Overview" using the Microsoft Access for Windows 95 Help Index. Microsoft Access "User's Guide", version 2.0, pages 735, 740 Microsoft Access "Building Applications", version 2.0, pages 295-298 Keywords : IntpDde Version : 2.0 7.0 Platform : WINDOWS Hardware : x86 Issue type : kbdocerr |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |