I have a query that pulls from a SQL table. It pulls a field, COMPANY_DESCRIPTION that is defined as a text field. When I look at the query results in Access, I see all the characters in that field, for example, I see 1245 characters for Company A's description. When I export it from within Access (right-click the query and export to Excel), I also see all 1245 characters for that field. However, when I export it via code, I only see the first 255 characters of that field. I'm using:
strExportAs = strPath + "\" + strCompany + ".xls"
DoCmd.SetWarnings False
DoCmd.SetWarnings False
DoCmd.TransferSpreadsheet acExport, 8, "qryExportOne", strExportAs
DoCmd.SetWarnings True
I'm using Excel 2007.
Anna Jaeger
iMIS Database Support
strExportAs = strPath + "\" + strCompany + ".xls"
DoCmd.SetWarnings False
DoCmd.SetWarnings False
DoCmd.TransferSpreadsheet acExport, 8, "qryExportOne", strExportAs
DoCmd.SetWarnings True
I'm using Excel 2007.
Anna Jaeger
iMIS Database Support