ACC2000: Exported Query Expression Truncated at 255 CharactersID: Q207668
|
When you export a query that contains an expression that results in more than 255 characters, the expression is truncated in the exported file.
Microsoft Access evaluates the expression as a Text field, and Text fields have a maximum length of 255 characters. When you export the query, Microsoft Access truncates anything after the 255th character.
Use an append query to append the data to a table that has a Memo field, and then export the table. The following example creates a table to store the results of a query expression that exceeds 255 characters:
Table: EmpNotes
--------------------
Field Name: EmpName
Data Type: Text
Field Name: Comments
Data Type: Memo
Query: MemoExpr
------------------------------------------------
Type: Select Query
Field: Full Name: [FirstName] & " " & [LastName]
Table: Employees
Field: Comments: [HireDate] & ": " & [Notes]
Table: Employees
Query: qryTruncate
-----------------------------------------------
Type: Select Query
Field: Full Name: [FirstName] & " " & [LastName]
Table: Employees
Field: Comment Length: Len([Comments])
Table: Employees
Field: Comments: [HireDate] & ": " & [Notes]
Table: Employees
For more information about exporting data to text files, click Microsoft Access Help on the
Help menu, type "export a datasheet to a delimited or fixed-width text file" in the Office Assistant or the Answer Wizard,
and then click Search to view the topic.
Additional query words: export ISAM text excel xl fixed delimited limit cut off cut-off prb
Keywords : kbdta IsmTxtd IsmOthr IsmTxtfx
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: May 13, 1999