Problem Adding SubForm rows via script

Problem Adding SubForm rows via script

Hi there, 

I am having problem adding SubForm row via script.

Scenario : 

Create_Hotel is the main form

1˚ subform : Create_Season (each row is a season, like "low season from... to...", "high season from.. to..", etc.)

2˚ subform : Create_Rooms (each row is a type of rooms in the hotel and for each type of room I have to copy in the field Create_Rooms.Season_room the value from Create_Season.Season. Same for Create_Rooms.rate_from=Create_Season.from and Create_Rooms.rate_to=Create_Season.to)


the script below works fine, and adds a row in the 2˚ subform when user create a row in the 1˚ subform : 

row_room = Create_Hotel.Create_Rooms();
row_room.Season_room=Create_Season.Season;
row_room.rate_from=Create_Season.from;
row_room.rate_to=Create_Season.to;
input.Create_Rooms.insert(row_room);

PROBLEM : 
All the new rows created in the 2˚ subform has the the value of the first row of the 1˚ subform.

How can I improve the script above in order to :
first row 2˚ subform = values from first row of the 1˚ subform
second row 2˚ subform = values from second row of the 1˚ subform
third row 2˚ subform = values from third row of the 1˚ subform
... and so on.. 

Thank you