The information in this article applies to:
SYMPTOMS
Novice: Requires knowledge of the user interface on single-user computers.
In Microsoft Access 97 ----------------------
When you click OK, you can continue editing and then save the record. CAUSE
You have tried to edit a read-only field in the record by using either the
DefaultValue property or Visual Basic for Applications.
RESOLUTIONDo not use the DefaultValue property or Visual Basic for Applications to edit read-only controls. STATUSThis behavior is by design. MORE INFORMATION
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.
Steps to Reproduce BehaviorCAUTION: Following the steps in this example will modify the sample database Northwind.mdb (or NWIND.MDB in version 2.0 or earlier). You may want to back up the Northwind.mdb (or NWIND.MDB) file and perform these steps on a copy of the database.
REFERENCES
For more information about calculated field, search the Help Index for
"calculated fields, queries" or ask the Microsoft Access 97 Office
Assistant.
Additional query words: default value
Keywords : kberrmsg FmsProb GnlMu GnlDe |
Last Reviewed: April 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |