PRB: VB Record Too Large When Add or Update Record > 2K (111304)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q111304 SYMPTOMS
The following error is the result when you Update or Add a Text field in a
table and the total record size exceeds about 2000 bytes for all fields
combined (not counting Memo fields):
Record is too large.
[Trappable Error number 3047.]
CAUSE
Records in a table in a Visual Basic or in a Microsoft Access database are
limited to slightly under 2K, not counting Memo fields. The "Record is too
large" error occurs when you enter data into such a record, not when you
define the table structure.
RESOLUTION
Redefine the table by making some fields shorter or by removing unneeded
fields.
You can also avoid this problem by using fields with the Memo type instead
of the Text type. You can set a field's Type property to 12 to get a Memo
type, instead of 10 to get a Text type. When a Memo field is greater than
250 bytes or whenever the 2K limit is reached on a record, Visual Basic
automatically puts the Memo field on a separate page in the database file.
If your Text fields contain related data, you could further improve space
usage by concatenating the fields into one large Memo field.
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB111304 |
---|
|