When I close a form using a command button on the form Access shuts down saying "....Access encountered a problem and needs to close......". This error does not occur if I use the close action in the toolbar or on the menu.
My form is comprised of a main form and a subform. What am I doing wrong or what would be causing this problem to occur? I have tried using the following code to close the form with my command button.
DoCmd.Close
I have also tried DoCmd.Close acForm, "ToDo"
I really need help with this. The ability to have command buttons on my main form that control both the main and subform actions are quite important to me.
Thanks in advance.
My form is comprised of a main form and a subform. What am I doing wrong or what would be causing this problem to occur? I have tried using the following code to close the form with my command button.
DoCmd.Close
I have also tried DoCmd.Close acForm, "ToDo"
I really need help with this. The ability to have command buttons on my main form that control both the main and subform actions are quite important to me.
Thanks in advance.