Many thanks - this works perfectly. My only issue is with the repeat selection part. (I am following the tutorial at http://www.webassist.com/tutorials/Create-a-multiple-record-insert-form). During this you have to select a number of repeats. My recordsets are variable in length so I enter a number that is the largest (70 in my case) . This is OK but leaves blank lines at the end. Do I have to have a number there and if I do how can I get it to just be the max I need? I think the line is
$RepeatSelectionCounter_1_Iterations = "70";