I have a query running and exporting through "AutoExec" then through some batch scripts renaming the file and dropping on an ftp site. I scheduled all these task to run through task scheduler so I could have the least amount of interaction possible. However, sometimes when the task runs the query and goes through all the steps, some files end up not having any data (no new data had been entered since the last time the query was run). Is there anywhere in the process that I could stop the "file" if it has no data? I have a header line which I could possibly leave off, didn't know if I could stop the export in Access or if I would have to do somewhere in the scripts.