Autofill subform

Autofill subform

Hello,

I have the following issue.

Form 1:
Field 1: Number
Field 2: Subform

Form 2:
Field 1: Lookup (based on form 1 number)
Field 2: Subform

Now I want the subform in field 2 filled, with the values of form 1, when selecting the number in field 1.

I have made the following script in form 2:

x = form_1  [ID == input.field1];

for each row in Subform
{
row.Description= X.Subform.Description;
}

The problem is he only fetches and updates the first row.

Greatings,

Erwin