ACC2000: "Too Many Fields Defined" Error Message in Update Query (199076)
The information in this article applies to:
This article was previously published under Q199076 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies only to a Microsoft Access database (.mdb).
SYMPTOMS
When you run an update query with more than 127 fields selected, you may
receive the error message:
Too many fields defined.
However, this same query will run correctly when you select 127 fields or fewer.
CAUSE
The Microsoft Jet database engine has an internal limit of 255 fields per
query. As the Microsoft Jet database engine iterates through the records in
an update query, it creates a field for the original value and a field for
the updated value. When more than 127 fields are selected, it reaches the
255 field limit of a query.
Consider the following SQL for an update query:
UPDATE Table SET A=B, C=D
Internally the query looks as follows:
SELECT A,B,C,D
FROM Table
RESOLUTION- Break down the update query into multiple update queries with 127 or fewer fields per query.
-or-
- Update the fields by using a recordset in Visual Basic for Applications.
REFERENCESFor more information about updating recordsets, in the Visual Basic Editor, click Microsoft Visual Basic Help on the Help menu, type Update method (DAO) in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about the "Too many fields defined" error message,
please see the following article in the Microsoft Knowledge Base: 198504 ACC2000: "Too Many Fields Defined" Error Message Saving Table
Modification Type: | Major | Last Reviewed: | 6/23/2005 |
---|
Keywords: | kberrmsg kbprb KB199076 |
---|
|