Hello. So, I have a form and subform for creating a new record, and I want basically a save and exit, and exit w/o save button. I have the save button fine. I was using the delete record command for the exit w/o save button, because if they put anything into the subform, it creates a record in the table the main form is linked to. But deleting a record doesn't work if there's no record of course. I tried Me.Undo for the main form, but that doesn't get rid of the subform stuff, and either I did something wrong or undoing the subform didn't work either.
I also have a form for editing existing records created by the previously mentioned form. And deleting a record wouldn't be good there, because it would delete the record you're trying to edit, rather than just undoing the changes you tried to make. Also, if you change anything in the main form, then go mess with the sub form, it saves those changes (right?) in the main form. Meaning you've lost the original data if you want to exit without saving.
What's the best/right way to handle undoing for both the new record creation form, and the existing record editing form? Did I mess something up with Undo to cause it to not work, or is there another way? I read some post talk about using temporary tables in between saving things to the primary table, but I'm not sure if that's right, or the proper way to set that up.