When you are creating the new record on the second form, Access does not know what Unit Number to use. In a sub-form with links established, it uses the value from the main form.
Here is what I would do. On the Command button, send the Unit Number on the form open call.
Dim strOpenArgs as...