G
Guest
Hello,
I have a subform that is opened off a main form with a button. What I would
like to have happen is for four of the fields to link back to the main form
and be populated with their values. The subform is a billing form that is
used by several other main forms as well so it needs to recognize the other
forms are in use.
I would like to put code in that tells the subform to recognize the fields
but each time I put the code in I get an empty field. If I put the main form
name in each field's default value with the full form path it works, but for
only one form.
The code I put in was:
stLinkCriteria = "[HouseRollNumber]=" & "'" & Me![HouseRollNumber] & "'"
Can someone let me know what I am doing wrong.
Thanks
IEJ
I have a subform that is opened off a main form with a button. What I would
like to have happen is for four of the fields to link back to the main form
and be populated with their values. The subform is a billing form that is
used by several other main forms as well so it needs to recognize the other
forms are in use.
I would like to put code in that tells the subform to recognize the fields
but each time I put the code in I get an empty field. If I put the main form
name in each field's default value with the full form path it works, but for
only one form.
The code I put in was:
stLinkCriteria = "[HouseRollNumber]=" & "'" & Me![HouseRollNumber] & "'"
Can someone let me know what I am doing wrong.
Thanks
IEJ