Hi Eddie!
More code...
When entering a new record the user may inadvertently want to close the form, or close the database, without saving (committing) or canceling the new record. Should this be allowed to happen, then the new record in the DataTableTemp table will be “stuck” in the table...