Hi guys,
I want to ouput the results of multiple queries to different sheets in the same excel file. The docmd.transferspreadsheet method works great except that if a user makes any changes to the file and saves it, the changes save, and the next time the user triggers the event for the ouput query the command doesn't overwrite the previous changes and the file contains the previous changes made as well. While the docmd.outputto command doesn't allow the user to makes changes and even if the user does the next time you run the command it overwrites the changes the user made....i want something like that with the added benefit of being able to output multiple queries to an excel sheet...
This is what i have as of now:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
"Order Subtotals", "C:\Sales.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
"qrySalesByCountry", "C:\Sales.xls"
Call OpenSpecific_xlFile("C:\Sales")
Does anyone have any suggestions or ideas?? ..it would be much appreciated!!
Thanks in advance..
I want to ouput the results of multiple queries to different sheets in the same excel file. The docmd.transferspreadsheet method works great except that if a user makes any changes to the file and saves it, the changes save, and the next time the user triggers the event for the ouput query the command doesn't overwrite the previous changes and the file contains the previous changes made as well. While the docmd.outputto command doesn't allow the user to makes changes and even if the user does the next time you run the command it overwrites the changes the user made....i want something like that with the added benefit of being able to output multiple queries to an excel sheet...
This is what i have as of now:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
"Order Subtotals", "C:\Sales.xls"
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel97, _
"qrySalesByCountry", "C:\Sales.xls"
Call OpenSpecific_xlFile("C:\Sales")
Does anyone have any suggestions or ideas?? ..it would be much appreciated!!
Thanks in advance..