Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Export table tot Excel, memofield truncated to 255 chars

Status
Not open for further replies.

Crookshanks

Technical User
May 18, 2004
296
NL
Hello,

See the above known problem. I know why it occurs and how to prevent it manually. If you export a table from the database window and point out that the format should be "Excel 97-2002" then the whole memofield is copied to excel. No problems here.

However, I want it do programmatically with one line of code, something like this:

DoCmd.OutputTo acTable, "tbl_Projecten", "Microsoft Excel 97-2002(*.xls)", diroutput, False, ""

The system exports the table without a warning and truncated the memofields.

Q: Is it possible to export a table automatically without cutting the memofield in little pieces?

Regards,

 
What about the DoCmd.TransferSpreadsheet method ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
That works. Thanks PHV.
DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "tbl_PROJECTEN", diroutput, True
Did the trick!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top