I am trying to create a fairly simple tracking database. A request comes in and is logged as a New Submission. If that request gets resubmitted at a later time that is a Re Submission. All Re Submissions require an original New Submission as shown in the relationship image:

On the form housing a New Submission is a subform with all the Re Submissions associated with that New Submission. As shown in the following image:

There is a column with a hyperlink to open a resubmission or add. If you open a resubmission it uses the simple VBA code:
Code:
DoCmd.OpenForm "f_ReSub Details", , , "ReSub.ID =" & Me!ID
DoCmd.Close acForm, Me.Parent.Name
and opens this nice Re Submission Details form:

and it works great on the resubmission test data that I entered by hand in the tables. Now my problem is when I hit the add to add a resubmission I cant seem to get it to open that same Re Submission Details form and populate the MDE_num that is required in the relationship image above. I did something similar in another project with creating the record ahead of time in VBA , but that was a long time ago and cant seem to get that working. Here is the code I was trying commented out:
Code:
Private Sub txtOpen_Click()
If IsNull(Me.ID) Then
' Dim rst As DAO.Recordset
' Dim var1 As Integer
'
' RunCommand acCmdSaveRecord
' Set rst = CurrentDb.OpenRecordset("ReSub")
' rst.AddNew
' rst!MDE_num = Me.Parent.MDE_num
' var1 = rst!ID
' rst.Update
' sf_BidsPerCustomer.Requery
DoCmd.Close acForm, Me.Parent.Name
' DoCmd.OpenForm "f_ReSub Details", , , "ReSub.ID =" & var1
DoCmd.OpenForm "f_ReSub Details", , , , acFormAdd
Else
DoCmd.OpenForm "f_ReSub Details", , , "ReSub.ID =" & Me!ID
DoCmd.Close acForm, Me.Parent.Name
End If
End Sub
So my question after all that is, how should I be properly creating a new record that is linked to the parent record in the New Submission Details form?
I have attached the database as a zip if you want to look at the actual file, it would let me just attach due to size.
Thank you so much for any help provided.
MDE Tracking-test1.zip