>You can write for example: > > if curs <> nil and curs.FirstRecord > do > ... > while curs.NextRecord tut tut ^^^^^^^^^^^^^^^^^^^^^^ ;?) loop until curs.nextrecord=false all the best Fred