P
Peter Hallett
I have a form with two sub-forms, one of which itself has
a sub-form (a sub-sub-form). The construction is
completely standard and the forms/sub-forms all display
properly, remain synchronized and correctly present the
data in the tables to which they are bound. On attempting
to enter the first value into any sub-sub-form field,
however, the error message:-
"You can't assign a value to this object
*The object may be a control on a read-only form...
*The object may be on a form that is open in design view
*The value may be too large for this field"
is displayed.
But none of these conditions applies. The
AllowEdits/Deletions/Additions switches are set to True
for the Main form and all sub-forms.
If the 'OK' button is clicked when the error message is
displayed, the message disappears, the rejected input is
shown in the field and data entry to the sub-form can then
be completed normally. If the bound tables are examined
after data has been entered, they are found to contain the
correct data, including the initially rejected first
character.
It is clearly unacceptable to have to remove the spurious
error message following the first sub-sub-form key-press
on every occasion that data entry is attempted to a new
form.
This problem does not affect the main form or either of
the sub-forms, including the parent of the sub-sub-form.
a sub-form (a sub-sub-form). The construction is
completely standard and the forms/sub-forms all display
properly, remain synchronized and correctly present the
data in the tables to which they are bound. On attempting
to enter the first value into any sub-sub-form field,
however, the error message:-
"You can't assign a value to this object
*The object may be a control on a read-only form...
*The object may be on a form that is open in design view
*The value may be too large for this field"
is displayed.
But none of these conditions applies. The
AllowEdits/Deletions/Additions switches are set to True
for the Main form and all sub-forms.
If the 'OK' button is clicked when the error message is
displayed, the message disappears, the rejected input is
shown in the field and data entry to the sub-form can then
be completed normally. If the bound tables are examined
after data has been entered, they are found to contain the
correct data, including the initially rejected first
character.
It is clearly unacceptable to have to remove the spurious
error message following the first sub-sub-form key-press
on every occasion that data entry is attempted to a new
form.
This problem does not affect the main form or either of
the sub-forms, including the parent of the sub-sub-form.