OK, if you're using code already, this is easy. Just add:
Kill "C:\import\YourFile.dat"
(replace your actual file name for "YourFile.dat")
If the file changes each time, you can supply the file name via a variable.
How you assign the name to the variable depends on your code, but the Kill
statement would look something like this:
Kill "C:\import\" & Filename
(in this case Filename is a variable that you assigned previously in your
code.
--
--Roger Carlson
Access Database Samples:
www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/wa.exe?SUBED1=ACCESS-L