The information in this article applies to:
Moderate: Requires basic macro, coding, and interoperability skills. This article applies only to a Microsoft Access database (.mdb). SYMPTOMSWhen you run an update query with more than 127 fields selected, you may receive the error message: 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. UPDATE Table SET A=B, C=DInternally the query looks as follows: SELECT A,B,C,D RESOLUTION
MORE INFORMATIONMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.asp Steps to Reproduce BehaviorThe following steps create three functions. The first function creates a table with 128 fields. The second function adds one record to the table and sets the value of the fields in that record to the word "TEXT." The third function creates an update query that updates the value in the fields to the letter "T." Run the three functions from the Immediate window and observe the error message.
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. Q198504 ACC2000: "Too Many Fields Defined" Error Message Saving Table Additional query words: prb
Keywords : kberrmsg kbdta QryUpdat |
Last Reviewed: September 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |