it's strange that it works but is limited to 26 lines. Is itpossible that 26 records is all that the SQL statement produces fromthe database? (ie have you tried a "SELECT * FROM <table>" to see ifit returns more?)