On 18.12.2011 at 18:06 Uhr +0200 Ruslan Zasukhin apparently wrote: >Hi Robert, > >Well, in PDF I have made > > if firstRecord > repeat forever > ... > if NextRecord = false then exit > end repeat > endif > > >Looks to be right logic Yes, this looks right assuming that parentheses for functions are omitted only in the email. Robert