G
Guest
I use the "Output To" function in code to export a table to excel, but it
changes the format of one field. The field contains eg "journal to 12345". In
Excel it only shows the number, unless I increase the column width. It won't
show any of the text until the column is big enough to fit the whole lot.
When I do it maually by clicking on the table, and clicking export, and
ticking the Save formatted check box, it does it fine.
Access help says that running it from code is the same as doing it manually.
But its not. Any ideas??
this is the output code: DoCmd.OutputTo acOutputTable, "journals",
acFormatXLS, , -1
changes the format of one field. The field contains eg "journal to 12345". In
Excel it only shows the number, unless I increase the column width. It won't
show any of the text until the column is big enough to fit the whole lot.
When I do it maually by clicking on the table, and clicking export, and
ticking the Save formatted check box, it does it fine.
Access help says that running it from code is the same as doing it manually.
But its not. Any ideas??
this is the output code: DoCmd.OutputTo acOutputTable, "journals",
acFormatXLS, , -1