Why do you have to remove it first? Using TransferSpreadsheet, it will just
overwrite the existing spreadsheet. The only time you run into a problem is
if you have the spreadsheet open in Excel when you try to run the procedure.
Here's an example of something I have used:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"YourTableOrQueryName", "C:\downloads\" & strFileName, True
Linda
"John Baker" <jo********@comcast.net> wrote in message
news:gf********************************@4ax.com...
Hi:
I know that there is a "kill" command, which will remove files from my
system, and that it
can be executed through Access.
Can someone tell me the form of the command to, say, remove a file with
the path:
"C:/ipt/timesheets/passover.xls"
I would be executing it through a macro using ther "run code" function.
Thanks a lot
JOhn Baker