Error updating a field when you add a new record to a form (289659)
The information in this article applies to:
- Microsoft Office Access 2003
- Microsoft Access 2002
This article was previously published under Q289659 Novice: Requires knowledge of the user interface on single-user computers.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
For a Microsoft Access 2000 version of this article, see 207684.
For a Microsoft Access 97 version of this article, see 174005.
SYMPTOMS
When you type data into a new record on a form that is based on a query or
an SQL statement, you receive one of the following error messages:
Field cannot be updated.
Multiple-step operation generated errors. Check each status value.
Start position is before the beginning or past the end of the rowset. No rows were returned.
When you click OK, you can continue to edit, and then you can save the record.
CAUSE
This behavior occurs when you try to update a read-only field in a record by using either the DefaultValue property or Visual Basic for Applications.
RESOLUTION
Do not use the DefaultValue property or Visual Basic for Applications to edit read-only controls.
REFERENCESFor more information about calculated controls, click Microsoft Access Help on the Help menu, type create a calculated control in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
For more information about the DefaultValue property, click Microsoft Access Help on the Help menu, type defaultvalue property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Minor | Last Reviewed: | 6/9/2004 |
---|
Keywords: | KbVBA kbArtTypeFIX kbdta kberrmsg kbprb KB289659 |
---|
|