>Jim,
>
>I was trying to determine another solution, because I would like the end user to be able to pull up other forms and have access to the main menu, etc.
>
>Thanks,
>Paul
Paul,
Then your code won't work. Non-modal forms are asynchronous, that is you do them and then control returns to the calling code to finish. If you try to determine, in the calling code, if the called form has been dispatched then the form will not get focus and the user will not be able to use it.
You approach requires that the forms be modal. Perhaps, if you explain what exactly you sare trying to do, we can suggest an alternative approach. The approach of using the loop, as you are, is a process driven design and the event driven forms will not cooperate very well with that.