I created a command button on a subform. If I close the main form before I hit the stop command I've created on the sub, My database crashes. Is there a way and how do I, enter a comand (either on the close button or On close event) that will trigger the stop command on the sub before the main form closes?