select tcern.cjobid, tcern.cprocgrp, tcern.cpaytype, tcern.clvtype, 00000 as recnum, ; padr(iif(left(tcern.cerndesc,1) = "*", ; subs(tcern.cerndesc,2), tcern.cerndesc) ,19) as cerndesc, ; 000000.00 as nernqty, 000000.00 as nernamt, ; round(000000.00 * 000000.00,2) as neamount, ; sum(round(tcern.nernqty * tcern.nernamt,2)) as nytd ; from (jckcomb), tcern, tcrec ; where left(tcern.cjobid,10) = &jckcomb..cemplid ; and tcern.cadjnum = 99 and tcern.stat # 'V' ; and tcern.nyear = thisform.payrollyear ; and tcern.ctctrannum not in (select distinct ctctrannum from (ttcrec)) ; and tcrec.ctctrannum = tcern.ctctrannum ; and tcrec.cjobid = tcern.cjobid ; and tcrec.cfrqcode = tcern.cfrqcode ; and tcrec.cadjnum = 99 ; and year(tcrec.dwrntdte) = year(sys_date) ; and tcrec.nyear = thisform.payrollyear ; into table (jckeytdtmp2a) ; group by 1, 2, 3, 4 ; order by 1, 2, 3, 4Any help will be very well apreaciate, we are in the process of approve the use of vfp 8.0 and there a couple of issue that was resolve but this one is common in the previous posting but nobody got a correct answer that bring other help to resolve the problem.