Hi...
I am exporting some data from a table with a memo field to excel but the excel report truncates the memo field data to 255 chars.
Please help...
Thanks
Shaq
I am exporting some data from a table with a memo field to excel but the excel report truncates the memo field data to 255 chars.
Code:
Dim strPath As String
' Current path
strPath = CurrentProject.Path & "\Adhoc_Report.xls"
'New workbook object
Dim sh As Workbook
DoCmd.OutputTo acOutputTable, "test2", acSpreadsheetTypeExcel9, strPath, 1
'Setting obj
Set sh = CreateObject(strPath)
'sh.ActiveSheet.Cells.EntireColumn.AutoFit
sh.ActiveSheet.Cells.ColumnWidth = 23
sh.ActiveSheet.Cells.EntireRow.AutoFit
Thanks
Shaq
Comment