Bug with Subform and loading

Bug with Subform and loading

hello,
i have a Form1 with a subform wich is a lookup to Form2. I add many rows in my subform with script deluge, no problem.
but i want add a check on the Edit on my Form1.

by example i write

for each  line in subform
{
alert "in the list";
}

even if i have 50 rows in my subform the script don't enter in the for each ? Why ?

thanks you