If you close a form, the Values of the controls will be committed to the table. IIRC, other users and or other queries will not see the new record until after it is committed to the table. In other words, closing a form or navigating to another record within a form will commit data to the table.
The Undo method will not have any affect on data that is saved/committed to the table.
Maybe the easiest is to use pop-up modal for your date entry thing. Have a Close button that does not do anything special other than pass a variable back to the previous form. A cancel button on the previous form can run a query to delete any records the form with the date thing may have created, as well as deleting any records the current form created.
You can check the form's properties to see if the record has been committed to the table yet.
Code:
If Not Me.NewRecord Then
'Delete from table
DoCmd.RunCommand acCmdDeleteRecord
End If