Can you provide me with the code that executes when a user presses shift-enter( is that code different for docmd.save record or is it the same code that happens when you click the subform from the main form) or when the user closes ms access by pressing the close button. I need them to do a code that prompts the user whenever they do that.