ACC: How to Determine When a Shelled Process Ends (178116)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
- Microsoft Access 97
This article was previously published under Q178116 Advanced: Requires expert coding, interoperability, and multiuser skills.
SUMMARY
When you run the Shell() function in a Visual Basic for Applications
procedure, it starts an executable program asynchronously and returns
control to the procedure. This shelled program continues to run
independently of your procedure until you close it.
If your procedure needs to wait for the shelled process to end, you can use
the Windows API to poll the status of the application, but this is not very
efficient. This article shows you a more efficient method.
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. REFERENCES
For more information about getting help with Visual Basic for Applications,
please see the following article in the Microsoft Knowledge Base:
163435
VBA: Programming Resources for Visual Basic for
Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbhowto kbProgramming KB178116 |
---|
|