Deleting Excel file from Access

stretch66

Racing towards the start
Local time
Today, 12:56
Joined
Sep 28, 2005
Messages
72
Hi,

Using code in Access how is it possible to delete an Excel File.

Have tried the Kill statement but cannot get it to work.

Any advice greatfully accepted!!!:confused:
 
Use the Kill command to delete any file. You've got to have to path. If no path is given, it might assume the same folder your mdb is in.
 
You can have a user browse for the file using a FileDialog object. Search this forum for FileDialog, and you'll see examples of how to set up the file dialog, the required reference, etc. That way, you can guarantee the correct path and filename.
 

Users who are viewing this thread

Back
Top Bottom