ACC1x: DDEInitiate from Word Fails When MS Access Is Not Running

Last reviewed: June 3, 1997
Article ID: Q106300
The information in this article applies to:
  • Microsoft Access versions 1.0, 1.1

SYMPTOMS

When you attempt to initiate a DDE conversation from Microsoft Word to Microsoft Access, the DDEInitiate function will fail if Microsoft Access is not already running.

CAUSE

If the DDE connect request is sent by Microsoft Word before Microsoft Access is fully initialized, the connect request is rejected.

STATUS

Microsoft has confirmed this to be a problem in Microsoft Access versions 1.0 and 1.1. This problem no longer occurs in Microsoft Access version 2.0.

MORE INFORMATION

Steps to Reproduce Problem

  1. Enter the following code in a new macro in Microsoft Word:

          iChan = DDEInitiate("MSAccess", "System")
          DDETerminate iChan
    

  2. Save and run the macro. Be sure that Microsoft Access is in the PATH statement in the AUTOEXEC.BAT file, but not currently running.

  3. Answer Yes to the message:

          The remote data (System) is not accessible. Do you
          want to start the application MSAccess?
    

    You get the error message:

          WordBASIC Err=500
          Cannot Initiate Link
     
    
    
    	
    	


Keywords : IntpDde kbinterop
Version : 1.0 1.1
Platform : WINDOWS
Hardware : X86
Issue type : kbbug
Resolution Type : kbfix


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.