ACC2: Query Generates "Field Length Is Too Long" Error MessageLast reviewed: May 7, 1997Article ID: Q128114 |
The information in this article applies to:
SYMPTOMSNovice: Requires knowledge of the user interface on single-user computers. When you reference a form memo field in a query using the syntax
Forms![Formname]![Controlname]you receive the error message:
Field length is too long. CAUSEThis behavior can occur if the memo field contains more than 255 characters. Microsoft Access assumes that the control being referenced in the query is a text field, rather than a memo field, and text fields are limited to 255 characters.
RESOLUTIONReference the memo field indirectly by calling an Access Basic function in the query that returns the field's contents. The following sample user- defined function demonstrates how to reference a memo control indirectly:
Function My_Memo() My_Memo = Forms![Formname]![Controlname] End FunctionTo call this function, replace the "Forms![Formname]![Controlname]" reference in the query with the name of the function.
MORE INFORMATION
Steps To Reproduce Behavior
STATUSThis behavior no longer occurs in Microsoft Access version 7.0.
REFERENCESMicrosoft Access "User's Guide," version 2.0, Appendix A, "Microsoft Access Specifications," page 707
|
Additional query words: query by form qbf
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |