G
G deady via AccessMonster.com
I thought about posting this in the thread on copying data from fields but
decided it was a different issue though similar. I have two forms eached
linked to a different table. The tables are linked in a one to many
relationship.(PK to FK)When I save a new record in Tbl1 and open new record
in Tbl2 I want the data in PK of Tbl1 to populate the FK field in tbl2. This
should be no problem since they are linked but I can't seem to get it. This
is my code:
Private Sub Label136_DblClick(Cancel As Integer)
Me.Refresh
DoCmd.OpenForm "frm_StateCivilCaseInfo", , , "SCVClientID = " & Me!ClientID
The code opens the new form but doesn't populate the "SCVClientID" field.
Can someone tell me what I am doing wrong?
decided it was a different issue though similar. I have two forms eached
linked to a different table. The tables are linked in a one to many
relationship.(PK to FK)When I save a new record in Tbl1 and open new record
in Tbl2 I want the data in PK of Tbl1 to populate the FK field in tbl2. This
should be no problem since they are linked but I can't seem to get it. This
is my code:
Private Sub Label136_DblClick(Cancel As Integer)
Me.Refresh
DoCmd.OpenForm "frm_StateCivilCaseInfo", , , "SCVClientID = " & Me!ClientID
The code opens the new form but doesn't populate the "SCVClientID" field.
Can someone tell me what I am doing wrong?