-
Hi,
I have got a project which runs fine, except that something is still running when I exit the project ( this also happens with the .exe version of the project ). I have located the source of the problem, but no matter what I do, it won´t stop. Is there a way to stop, shut down, whatever everything when I unload the last form in the project?
Any help gratefully accepted,
Cheers,
Sparky
-
Sort of depends what is going on. You can place this in the unload event of the form, or in a sub in a module.
It may be a loop that i still running that is keeping your program going. A common thing with loops and DoEvents
Code:
Dim myForm as Form
For Each myForm in Forms
UnLoad myForm
set myForm = Nothing
Next