paulcraigdainty
Registered User.
- Local time
- Today, 22:50
- Joined
- Sep 25, 2004
- Messages
- 74
I have the following statement which exports data based on a query to a .xls:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryreportsbydate", "C:\Documents and Settings\pdainty\Desktop\RawQualityData_Weekly.xls "
This works fine it exports the data and names the sheet rawqualitydata.
The problem i'm having is when i come to run the export again Excel tells me the file already exists. What I want it to do is overwrite the data in the rawqualitydata sheet in the same file.
Is this possible?
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "qryreportsbydate", "C:\Documents and Settings\pdainty\Desktop\RawQualityData_Weekly.xls "
This works fine it exports the data and names the sheet rawqualitydata.
The problem i'm having is when i come to run the export again Excel tells me the file already exists. What I want it to do is overwrite the data in the rawqualitydata sheet in the same file.
Is this possible?