I have a database with a macro that runs in Access 2003 which generates a new table then exports it to a text file. I am upgrading the database to Access 2010 and have run into an issue exporting to the text file automatically. My test macro is as follows:
SetWarnings = No
ExportWithFormatting
Object Type: Table
Object Name: DataTable
Output Format: Text Files (*.txt)
Output FIle: C:\Temp\DataTable.txt
Autto Start: No
Output Quality: Print
After running the macro once every time I run it after that I get "The file C:\Temp\DataTable.txt already exists. Do you want to replace the existing file? Yes, No".
Any insights on how to enable this in a macro would be apprectiated.
Art