I've tried unloading all forms in my app, but I'm hanging up when I exit my app. My app has a number of forms that allow the user to go 'back' or 'next'. I show a form, then hide the current form when they click on 'back' or 'next'. After the current form is hidden I show the new form and keep doing this until all forms have been displayed and 'next' is clicked one last time. My app exits fine if the user never clicks 'back'.

I use query unload to verify an exit from the user. If accepted, I call a procedure to unload all forms.

Dim Frm As Form

For Each Frm In Forms
Unload Frm
Set Frm = Nothing
Next Frm
End

I have noticed that if a form is displayed more than once it runs the query unload more than once. I don't know why, because I'm only making the form invisible, then visible again, so there shouldn't be more than one instance of it, right?

Thanks in advance for your replies.