Hi,
I'm new to VBA and this sounds simple (I think). I have a pop up form that is opened in dialog mode by a macro in Access 2010. The macro also performs other steps after other buttons on the form are pressed. I then placed a "cancel" button on the pop up form to close everything out. I used "Exit Sub", "DoCmd.close", and "End", which closes the form, but the macro still continues to run to its end. I need the "cancel" button to stop and exit the macro, and then close the form. What am I missing here? I cannot seem to find any vba that will do that. Can someone please help me.
I'm new to VBA and this sounds simple (I think). I have a pop up form that is opened in dialog mode by a macro in Access 2010. The macro also performs other steps after other buttons on the form are pressed. I then placed a "cancel" button on the pop up form to close everything out. I used "Exit Sub", "DoCmd.close", and "End", which closes the form, but the macro still continues to run to its end. I need the "cancel" button to stop and exit the macro, and then close the form. What am I missing here? I cannot seem to find any vba that will do that. Can someone please help me.
