Access to main form fields in subform script

Access to main form fields in subform script

Hello.

I have a SubForm called Tasks into my main form. Every time i insert a record in this SubForm, i want to insert one record in another form. The problem is that i need 3 field to do the insert and 2 of these fields are in the main form.

How can i access to this fields?