Hello,
I have a form that is based on one table and a subform based on a second table. The main form displays one record from the first table, and the subform displays all the related records from the second table.
I want to pass a value from the main form, to each record on the subform.
I can’t figure out how to control the subforms’ fields from the code in the main form. I don’t know how to refer to the subform.
(i.e. if “Me.[ ]” refers to the main form, what would refer to the subform?)
E.g:
For Each Rec in Subform
Let Me.[TransID] = Subform.[TransID] ?
Next
Is there an easy way to ‘talk to’ the fields in the subform from the main form?
How can I copy values from one table to multiple records in the second table?
Please let me know if you need further clarification,
Thanks
Blair
I have a form that is based on one table and a subform based on a second table. The main form displays one record from the first table, and the subform displays all the related records from the second table.
I want to pass a value from the main form, to each record on the subform.
I can’t figure out how to control the subforms’ fields from the code in the main form. I don’t know how to refer to the subform.
(i.e. if “Me.[ ]” refers to the main form, what would refer to the subform?)
E.g:
For Each Rec in Subform
Let Me.[TransID] = Subform.[TransID] ?
Next
Is there an easy way to ‘talk to’ the fields in the subform from the main form?
How can I copy values from one table to multiple records in the second table?
Please let me know if you need further clarification,
Thanks
Blair