Hi - this section of the program is reading WOX, records that start with ""6"" - if you debug, you can print next_ky$, which shows you the record in WOX that is being read. it is trying to read the work order that is in next_ky$(12,7) .... it is reading it on channel wo1_chan_vall so you can also print fid(wo1_chan_vall) and see if you get the WO1 file - if you get something else, then the wrong file is open on that channel......