G Guest Oct 18, 2006 #1 I'm creating an Excel spread sheet using the TransferSpreadSheet function. Is the a way I can have the created file open?
I'm creating an Excel spread sheet using the TransferSpreadSheet function. Is the a way I can have the created file open?
G Gus Oct 18, 2006 #2 Justin said: I'm creating an Excel spread sheet using the TransferSpreadSheet function. Is the a way I can have the created file open? Click to expand... Hi Justin, You can try the following if you do not have to use the TransferSpreadSheet function: DoCmd.OutputTo acOutputQuery, "qryMyQueryNameHere", acFormatXLS, "MyOutputFilePathAndNamehere.xls", True Example with real data: DoCmd.OutputTo acOutputQuery, "qryExpDailyAvail", acFormatXLS, "C:\Data\Temp\Daily Availability.xls", True TheOutPutTo has the option at the end to put a "True" value in the Autostart section at the end. See what you think anyway... Cheers, Gus
Justin said: I'm creating an Excel spread sheet using the TransferSpreadSheet function. Is the a way I can have the created file open? Click to expand... Hi Justin, You can try the following if you do not have to use the TransferSpreadSheet function: DoCmd.OutputTo acOutputQuery, "qryMyQueryNameHere", acFormatXLS, "MyOutputFilePathAndNamehere.xls", True Example with real data: DoCmd.OutputTo acOutputQuery, "qryExpDailyAvail", acFormatXLS, "C:\Data\Temp\Daily Availability.xls", True TheOutPutTo has the option at the end to put a "True" value in the Autostart section at the end. See what you think anyway... Cheers, Gus