The information in this article applies to:
Advanced: Requires expert coding, interoperability, and multiuser skills. SYMPTOMSWhen you quit Microsoft Excel over a dynamic data exchange (DDE) channel in Microsoft Access, you receive the following error message:
CAUSEMicrosoft Excel 4.0 automatically closes down any open DDE channels when it quits, rather than waiting for the DDE channels to be closed properly. RESOLUTIONYou can use one of the following two methods to work around this behavior. First, you can add an On Error Resume Next statement to your Microsoft Access function before the DDE quit command. The following sample function demonstrates this method:
Second, you can have Microsoft Excel quit on its own, rather than having
Microsoft Access send the Quit instruction. You can do this by having the second to last line in a Microsoft Excel macro call another macro. The first macro will contain a line similar to:
This will call a second macro in three seconds. The second macro will
contain the two lines:
You can remove the DDE Quit command from your Microsoft Access function if you use this method. MORE INFORMATIONSteps to Reproduce BehaviorThe following sample function will open Microsoft Excel and run a macro named Message. When the function instructs Microsoft Excel to quit, the error message mentioned in the "Symptoms" section will occur.
REFERENCESFor more information about the DDEInitiate() function, click Microsoft Access Help on the
Help menu, type "DDEInitiate" in the Office Assistant or the Answer Wizard,
and then click Search to view the topics returned. Additional query words: prb
Keywords : kberrmsg kbinterop kbdta |
Last Reviewed: May 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |