Re: Exit from application
You must make sure all form of the program are unloaded. If you have any other (like hidden) form open, the app won't exit. You can use the forms collection to check this, and unload them.
private Sub mnuExit_Click()
dim frm as Form
for Each frm in Forms
Unload frm
next frm
End Sub
Also make sure you aren't looping (do loop using DoEvents) anymore, because when you're looping, the form you're looping is just won't unload.
Tom Cannaerts
[email protected]
Programming today is a race between software engineers striving to build bigger and better idot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook