ACC2: Subform's DefaultEditing Can't Be Changed to Allow Edits (132103)
The information in this article applies to:
This article was previously published under Q132103
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
If you have a main form that includes a subform, and you set the main
form's DefaultEditing property to Read Only, the subform remains read-only
and ignores any attempts to change it to Allow Edits as long as the main
form is in Form view.
When you want to protect a form record's information, you can set the
form's DefaultEditing property to Read Only. If you need to be able to
change this property while the form is in Form view, you can add a command
button to your form that resets the DefaultEditing property to Allow Edits.
However, if your form contains a subform, the subform will not allow any
user input even when you explicitly change the DefaultEditing property of
the subform to Allow Edits.
RESOLUTION
Set the main form's DefaultEditing property to Allow Edits, and add a
macro or Access Basic code to the Open or Load event so that it changes
the DefaultEditing property to Read Only.
STATUS
This behavior no longer occurs in Microsoft Access version 7.0.
REFERENCES
For more information about the DefaultEditing property, search for
"AllowEditing," and then "AllowEditing, DefaultEditing Properties" using
the Microsoft Access Help menu.
For more information about macros see the Microsoft Access "User's Guide",
version 2, Chapter 24 and 25, "Macro Basics" and "Using Macros with Forms,"
pages 605-664.
Modification Type: | Major | Last Reviewed: | 7/5/2002 |
---|
Keywords: | kbprb kbusage KB132103 |
---|
|