P
Paul Ponzelli
I have a subform in which I'd like to be able to both add and edit records.
However, it keeps resetting its Allow Edits, Allow Deletions and Allow
Additions properties to No, even after I change all of these properties to
Yes (and save the changes).
A related problem is that if there are no existing records in the subform,
the subform is blank, so there is no way to add a new record to the subform.
I've checked other properties of the main form, subform control and
underlying query to see if any properties of these objects might be forcing
those subform properties to reset to No, but I can't find anything that
would conflict with editing or adding records to the subform. For example,
all three "Allow" properties are set to Yes in the main form. DataEntry is
set to No in both forms. In both the main forms as well as the underlying
query, Recordset Type is Dynaset and Record Locks is set to No. The Enable
property of the subform control is set to Yes, and Locked is set to No.
So I actually have two questions about this:
1. What keeps resetting the subform's "Allow" properties to No, and how can
I overcome this so I can edit records in the subform, and
2. How can I display empty form control fields in the subform so I can enter
new records when the recordset is empty?
Thanks in advance,
Paul
However, it keeps resetting its Allow Edits, Allow Deletions and Allow
Additions properties to No, even after I change all of these properties to
Yes (and save the changes).
A related problem is that if there are no existing records in the subform,
the subform is blank, so there is no way to add a new record to the subform.
I've checked other properties of the main form, subform control and
underlying query to see if any properties of these objects might be forcing
those subform properties to reset to No, but I can't find anything that
would conflict with editing or adding records to the subform. For example,
all three "Allow" properties are set to Yes in the main form. DataEntry is
set to No in both forms. In both the main forms as well as the underlying
query, Recordset Type is Dynaset and Record Locks is set to No. The Enable
property of the subform control is set to Yes, and Locked is set to No.
So I actually have two questions about this:
1. What keeps resetting the subform's "Allow" properties to No, and how can
I overcome this so I can edit records in the subform, and
2. How can I display empty form control fields in the subform so I can enter
new records when the recordset is empty?
Thanks in advance,
Paul