Creating a parent-child data entry form in access

时间:2018-06-04 16:39:01

标签: database forms ms-access parent-child

I have created a form that requires the following inputs "Master Label", "Child Label(s)" which has a submit button to enter the record. Is there a way to keep the "Master Label" field the same and allow multiple submissions of different child labels.

Then when I am ready for a new Master label I will simply insert a button "New Master Label" that will clear out the previous Master Label.

1 个答案:

答案 0 :(得分:0)

想出来。

Private Sub Child_Label_Input_Exit(Cancel As Integer)
With CodeContextObject
Me.Parent_Label.DefaultValue = """" & Me.Parent_Label & """"
End With
End Sub