D
David
I am trying to export a query to Excel. The preferred method in this user
group seems to be transfer spreadsheet option. However I am getting an
apostrophe at the beginning of each cell. When using the output to option,
exports fine. However I want the ability to name the tab in Excel.
How can I modify the transfer spreadsheet command so it doesn't have an
apostrophe?
900 strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)",
"*.XLS")
910 strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=False, _
DialogTitle:="Please select an export file...", _
Flags:=ahtOFN_HIDEREADONLY)
920 Me.txt_InputFile = strInputFileName
'930 DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qry_tbl_TD_Upload_Export", Me.txt_InputFile, yes, "data export"
930 DoCmd.OutputTo acOutputQuery, "qry_tbl_TD_Upload_Export",
acFormatXLS, Me.txt_InputFile
group seems to be transfer spreadsheet option. However I am getting an
apostrophe at the beginning of each cell. When using the output to option,
exports fine. However I want the ability to name the tab in Excel.
How can I modify the transfer spreadsheet command so it doesn't have an
apostrophe?
900 strFilter = ahtAddFilterItem(strFilter, "Excel Files (*.XLS)",
"*.XLS")
910 strInputFileName = ahtCommonFileOpenSave( _
Filter:=strFilter, OpenFile:=False, _
DialogTitle:="Please select an export file...", _
Flags:=ahtOFN_HIDEREADONLY)
920 Me.txt_InputFile = strInputFileName
'930 DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9,
"qry_tbl_TD_Upload_Export", Me.txt_InputFile, yes, "data export"
930 DoCmd.OutputTo acOutputQuery, "qry_tbl_TD_Upload_Export",
acFormatXLS, Me.txt_InputFile