Select Distinct invno, custno, Item, Descrip, disc, taxrate, cost, price, qtyord, ; qtyshp, invdte, ponum, extprice, salesmn, terr, Class, stkcode, taxable, arstat, ; glsale, glasst, Batch, taxdist, taxtype, fcreatdate From arytrn01 ; unION (Select invno, custno, Item, Descrip, disc, taxrate, cost, price, qtyord, ; qtyshp, invdte, ponum, extprice, salesmn, terr, Class, stkcode, taxable, arstat, ; glsale, glasst, Batch, taxdist, taxtype, fcreatdate From artran01); INTO Cursor sbt_artran Select 0 l_sbt_artran = dbf('sbt_artran') l_sbt_artran_tally = _tally FLUSH WAIT WINDOW "Creating Tran file..." TIMEOUT 60 Select *, Space(5) As Lineno From Dbf('sbt_artran') Where Item != "300 " And Item != "DEL" And Item != "310" ; AND Item != "312" Order By 1,3 Into Cursor Tran ReadwriteThe last line is what generates the file not found error.