Hello all,
I know this subject has been asked before, but I seem to be having a hard time getting it to work.
I have the following:
tblComplaint
pkComplaintID/autonumber
fkComplainantID/number
tblComplainant
pkComplainantID/autonumber
I have a main form with tabs. On one tab, I have a subform.
From what I have read, in order for me to get the pkComplainantID from the subform control to the parent form control I would have to reference the control on the subform to the parent form control to populate the control on the parent form. lol, I hope this is making sense.
This is what I am using:
I am not sure where to place the code above. I have tried the afterupdate of the subform, as well as the beforeupdate events. Nothing has worked so far.
Any help would be appreciated.
I know this subject has been asked before, but I seem to be having a hard time getting it to work.
I have the following:
tblComplaint
pkComplaintID/autonumber
fkComplainantID/number
tblComplainant
pkComplainantID/autonumber
I have a main form with tabs. On one tab, I have a subform.
From what I have read, in order for me to get the pkComplainantID from the subform control to the parent form control I would have to reference the control on the subform to the parent form control to populate the control on the parent form. lol, I hope this is making sense.
This is what I am using:
Code:
Forms![Citizen Initial Call]![txtComplainantID] = Forms![sfComplainant].Form![ComplainantID].Value
I am not sure where to place the code above. I have tried the afterupdate of the subform, as well as the beforeupdate events. Nothing has worked so far.
Any help would be appreciated.