Van T. Dinh said:
If the Field corresponding to the truncated Excel Column is a Memo, you
might have some sorting in the source Query. Since JET cannot sort Memo
Field values, JET truncate the values to 255 characters like Text Field
before sorting. This trucation is carried over to the export to the Excel
spreadsheet.
I don't think that's correct. Here's my test:
CREATE TABLE Van (MyMemoCol MEMO)
;
INSERT INTO Van (MyMemoColumn) VALUES
('1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902')
;
INSERT INTO Van (MyMemoCol) VALUES
('1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901')
;
SELECT MyMemoCol
INTO [Excel 8.0;HDR=YES;Database=C:\Van.xls;].NewTable
FROM Van ORDER BY MyMemoCol
;
SELECT LEN(MyMemoCol)
FROM [Excel 8.0;HDR=YES;Database=C:\Van.xls;].NewTable
;
I get two rows, both showing 301, thus proving the data was not
curtailed even when a sort was attempted on export.
How did you do it?
Jamie.
--