Hi, I have a main form with a pop up subform. It is a one to many relationship.
I have this code to open the subform "DoCmd.OpenForm "frm_ACQ_Acquisition", , , "BTID = " & Me.BTID" and it works great.
Now on the subform, I want to create a new record but keep it under the main form. How can I keep the BTID with the new record, when I add a new record using this code the BTID is blank...
DoCmd.GoToRecord , , acNewRec
Me.BTID = frm_ACQ_Batch.BTID
Thanks.
Fen
I have this code to open the subform "DoCmd.OpenForm "frm_ACQ_Acquisition", , , "BTID = " & Me.BTID" and it works great.
Now on the subform, I want to create a new record but keep it under the main form. How can I keep the BTID with the new record, when I add a new record using this code the BTID is blank...
DoCmd.GoToRecord , , acNewRec
Me.BTID = frm_ACQ_Batch.BTID
Thanks.
Fen