< Back

Document Subject: Are you sure? when closing a document
Hint Short Cut: Add this to your code & documentation to help you find this page.
http://#LSAreYouSure or http://A555F9/nn.nsf/ByAlias/LSAreYouSure
When a user closes a document you might want to prompt them to make sure they want to.

Stick this in the Query Close Event of the form:

     'Code from  http://www.notesninjas.com
   
    answer% = Messagebox("Continue and close the " & _
   "document?", 36, "Continue?")
   
   If answer% = 7 Then 'user has panicked and said No
        continue=False
        Exit Sub
   End If
   
   'User still wants to close