Terminating a Channel with Q+E Closes the FileLast reviewed: November 4, 1994Article ID: Q67442 |
The information in this article applies to:
SUMMARYWhen a file is the topic of a DDE channel to Microsoft Q+E or a file is opened over a channel initiated with the topic "system", that channel will close the file if you issue a terminate.
WorkaroundSave the query before terminating the channel. This allows you to reopen the query in Q+E.
MORE INFORMATIONThe following macro opens EMP.DBF, selects all employees hired after 1/1/85, and then saves the query as TEST.QEF. You can then move to Q+E and open TEST.QEF to view only employees hired after 1/1/85.
chan=INITIATE("QE","SYSTEM")
=EXECUTE(chan,"[open('c:\excel\qe\emp.dbf','dBASEfile')]")
=EXECUTE(chan,"[select.column(hire_date)]")
=EXECUTE(chan,"[add.condition(1,5,'1/1/85',FALSE)]")
=EXECUTE(chan,"[save.query.as('test.qef')]")
=TERMINATE(chan)
=RETURN()
|
KBCategory: kbother
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |