Delete excel files by code in Access
I have a program that exports to excel spreadsheet, the fields it exports are variable, if i export many fields, then a couple of fields then again many fields the transfer spreadsheet fails as the file says there are too many fields.
#It would appeat that what I need to do is delete the spreadsheet before exporting, I am looking for code to check existence of file and then to delete if exists.
any help?
|