I have a command button on my form that creates a new database and places it in a seperate folder for Emailing data. During the day I may have created many new databases.
I also have a comand button for deleting all the database's in the folder after they have been Emailed. (I'm using the Kill statment with path to directory.)These all work great unless you happen to hit the delete key twice or there is no database to delete. I then get an error message "File not found". What would I put in my code to keep from getting the error, when there's nothing to delete?
Thanks
gMAC
I also have a comand button for deleting all the database's in the folder after they have been Emailed. (I'm using the Kill statment with path to directory.)These all work great unless you happen to hit the delete key twice or there is no database to delete. I then get an error message "File not found". What would I put in my code to keep from getting the error, when there's nothing to delete?
Thanks
gMAC