ACC: Exported Query Expression Truncated at 255 CharactersID: Q178743
|
Moderate: Requires basic macro, coding, and interoperability skills.
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 containing 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
This behavior is by design.
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, search the Help Index for "exporting data," or ask the Microsoft Access 97 Office Assistant.
Additional query words: export ISAM text excel xl fixed delimited limit cut off cut-off
Keywords : IsmTxtd IsmOthr IsmTxtfx
Version : WINDOWS:2.0,7.0,97
Platform : WINDOWS
Issue type : kbhowto kbprb
Last Reviewed: April 26, 1999