xls file encoding

bbwolff

Registered User.
Local time
Today, 18:20
Joined
Oct 1, 2013
Messages
116
i have problems with saving data to xls as it turns some characters in gibberish

čšž goes to Cyrillic letters Љж... the rest looks rather normal... i'm not really sure Cyrillic letters are the right ones

i use this line

Code:
DoCmd.OutputTo acOutputQuery, "koordinator", acFormatXLS, strpath, False

output to has an option to add encoding

Code:
.OutputTo(ObjectType, ObjectName, OutputFormat, OutputFile, AutoStart, TemplateFile, Encoding, OutputQuality)

but I'm not sure what to write as the value for encoding
anyone knows? I'd like to set the default encoding as Central-European.
 
Have you tried the TransferSpreadsheet method?
Code:
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel12, "qryYourQuery", strSaveFileName
 
i found an old forum post
it's a bug in acces 07 that was fixed in 10
there is a workaround, i had to export it to xlsx form and it works normally
 
As a rule, if you find an answer elsewhere, it's considered polite to post it in the thread you started here. That way, if someone else having the same problem digs up this thread, they'll have the answer available instead of having to re-invent the wheel.
 
Whoops, guess you had. Sorry about that! Somehow I skipped over the middle third of that sentence. :(
 

Users who are viewing this thread

Back
Top Bottom