ok, I think I see now what the DTS is doing. You have a .txt as a linked table in access. you are connecting through the virtual access table from sql dts and exporting a query of the line count to SQL server.
Is it working manually but not when you schedule it as a job? If so check that the SQL Server Agent service startup account has permission to read the .txt file from the drive on which it is stored. again, sorry if I'm still not understanding fully where the problem is
Matt
Brighton, UK