A family of Microsoft relational database management systems designed for ease of use.
Your code works for me.
I created a form with a tab control, and bound a table to that form. I placed 3 controls on one tab page, and 3 on another (all of them bound to the table).
I entered data into all controls, and then clicked my button (which contained exactly the same code as yours). The form closed, and when I checked the table there were no new records in the table.
I did have an Autonumber field in my form, and that Autonumber was incremented, but that's not really important.
Are you sure you're not working with Subforms? The behavior you describe sounds just like what happens when you move from a main form to a subform (the main form saves immediately).