ACC: How to Wait for a Shelled Process to Finish (99940)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q99940 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
When you are using the Shell() function or the RunApp macro action to
run another program or process, Microsoft Access does not wait for the
shelled process to finish before processing the next line in the macro
or function. This causes problems for macros and functions whose
subsequent actions depend on the results of the shelled process.
This article demonstrates a Microsoft Access function called WaitShell()
that, given an application name or process to run, starts the process and
waits for it to terminate.
REFERENCES
For more information about using the Shell function in Microsoft Access 7.0
and 97, please see the following article in the Microsoft Knowledge Base:
178116 How to Determine When a Shelled Process Ends
Microsoft Windows "Programmer's Reference, Volume 2: Functions,"
version 3.1, pages 403-404
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbhowto kbinterop kbprogramming KB99940 |
---|
|