Well Dan, I found out that the link to AR Inv History Detail for the company was ""damaged"". Once I deleted it and made a new link, the query worked. (I made a temp table on only invoices for the last two years and then link to the detail file.) However, I had to do the same thing for another company (same client) and cannot resolve error #14. There are 7 million records (from 2006!) My first thought is to make a backup company and purge old history. Interestingly enough, I can write crystal report on the same thing without error. (But for various good reasons, I cannot write the custom report in crystal.)