>Could it be that there are records just without a Report name in the Reports file?
Yes, they could, but then that is redundant:
reports.rptname != NULL; *Should make sure there is a report listed
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.