Hi,
I'm trying to export a query output to an excel file, with the code bellow
The problem it that some special chars like "ã", which are ok in the query view, in the output excel file are wrong (replaced by a Ć).
If i use
The chars are ok, but the design and look of the excel file when opened are fuzzy like a csv file, while when use the first option it looks ok, with gray column headers, etc
I tried to find everywhere the way to output the right way, but the only thing i managed to find was the acUTF8 and acUTF16 (in MS site there's no example...), to put as the Encoding option in the docmd.outputto line, but this seems to do nothing. The bad chars still there
What can I do?
Thank you
I'm trying to export a query output to an excel file, with the code bellow
Code:
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, cfilename
If i use
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, stDocName, cfilename
I tried to find everywhere the way to output the right way, but the only thing i managed to find was the acUTF8 and acUTF16 (in MS site there's no example...), to put as the Encoding option in the docmd.outputto line, but this seems to do nothing. The bad chars still there
Code:
DoCmd.OutputTo acOutputQuery, stDocName, acFormatXLS, cfilename, , , acUTF8
What can I do?
Thank you