> repeat with x = 1 to the number of lines of field "articles" i'd replace this line with put the number of lines of field "articles" into vNumberOfLines repeat with x = 1 to vNumberOfLines this way the number of lines is only calculated once instead of through every repeat..