>cfields=tno+riskno+agytype+agycode+provcode+alltrim(lastnme)+alltrim(firstnme)+alltrim(midnme)+alltrim(desig)+alltrim(station)+dtoc(efecdate)+dtoc(matdate)+paid+dtoc(dpaid)+canceld+dtoc(dcanceld)+str(bondamt,16,2)+str(premamt,16,2)+dtoc(dprep) > >select * from tbond where cfields not in (select cfields from bond) >>
cfields="tno+riskno+agytype+agycode+provcode+alltrim(lastnme)" ; +"+alltrim(firstnme)+alltrim(midnme)+alltrim(desig)+alltrim(station)" ; +"+dtoc(efecdate)+dtoc(matdate)+paid+dtoc(dpaid)+canceld" ; +"+dtoc(dcanceld)+str(bondamt,16,2)+str(premamt,16,2)+dtoc(dprep)" select * from tbond where &cfields. not in (select &cfields. from bond)3) Calling something lastnme instead of lastname is just asking for trouble. I'd bet most people would have trouble remembering to drop the "a" from name.