Added: Apr 29, 2002
Snippet uploaded by: snippet
Written By: unknown
Demo: Sorry, no demo
To make a clean exit 1. Unload and set forms to nothing 2. Close databases
Highlight all by clicking in box
'If user clicks the No button, do not exit
If MsgBox("Do you really want to exit?", vbQuestion + vbYesNo + vbDefaultButton2, "Exiting") = vbNo Then Exit Sub
'Close data control recordset & database
'Unload, clear from memory & end program
Set frmMain = Nothing
No Comments to show
Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.
Adding your comment. Please wait...
Thanks for adding your comment!. After further review it will be added.
There was a problem adding your comment. Please try again.
Please complete all the fields in the form before sending.