ACC: Error Updating Field When Adding New Record to FormID: Q174005
|
Novice: Requires knowledge of the user interface on single-user computers.
When you enter 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.
In Microsoft Access version 2.0, 7.0 and 8.0
--------------------------------------------
Field can't be updated.
Field can't be updated.
- or -
The field can't be updated because another user or process has locked the corresponding record or table.
You have tried to edit a read-only field in the record by using either the
DefaultValue property or Visual Basic for Applications.
NOTE: Visual Basic for Application is called Access Basic in Microsoft
Access 2.0.
Do not use the DefaultValue property or Visual Basic for Applications to edit read-only controls.
This behavior is by design.
When you create a form based on a query, any control bound to a query field
containing an expression is read-only. Because the query expression is not
bound to any specific field in the underlying table, you can't edit the
values in these fields. However, when you set the DefaultValue property of
such a control, Microsoft Access attempts to write a new value to that
control every time you add a new record.
For more information about calculated field, search the Help Index for
"calculated fields, queries" or ask the Microsoft Access 97 Office
Assistant.
For more information about calculated controls, search the Help Index for
"calculated controls, creating" or ask the Microsoft Access 97 Office
Assistant.
For more information about default values for controls, search the Help
Index for "DefaultValue property" or ask the Microsoft Access 97 Office
Assistant.
Additional query words: default value
Keywords : kberrmsg FmsProb GnlMu GnlDe
Version : WINDOWS:2.0,7.0,97
Platform : WINDOWS
Issue type : kbprb
Last Reviewed: April 21, 1999