copy file nan.dbf to tmpnan.dbf && make a copy of the nan table use NAN in 0 use tmpNAN in 0 Select tmpNAN APPEND FROM aar TYPE xls && aar.xls i put it at the same directory sele nan append from tmpNan for recno() > 6 * append from the tmpnan into the real nan filtering the records as requiredthanks.