Not sure if i got this right but its worth a try.
No repeat needed, lineoffset should do the trick. Assuming field 1 is the field you want to inset and field 2 the field you want to insert into then:
Code: Select all
Put field 1 into line(lineoffset("414:",field 2)+2) of field 2
What this does is find the number of the line 414: belongs to, lets say it is line 505, add 2 to it since the next 2 lines are data associated with "414:", 505 is now 507 so (lineoffset("414:",field 2)+2) returns 507 and now we put our data into line 507 of field 2...
If i were you i would use an array, all you have to do is insert the data put it into a datagrid and then sort it out by a column, lets say column "ID" witch contains the ID (413,414,500...) if you need help with it let me know.
Knowledge is meant to be shared.