D
david epsom dot com dot au
I have a subform linked by master/child fields to a main form.
This is not how I usually code, and I'm not used to it.
Immediately after I start to enter data into a new record, I get a before
update event, and Access tests the validity of some of the fields on the
subform. That is far two early - the record is not complete.
It doesn't really save the record, because I can still escape out of the new
record.
When I don't use master/child fields, I don't get this error (and I don't
get default values automatically inserted into those fields).
The actually error is something like "The datYield can't be null, because
it is a required field". I know that, I just have not entered that field
yet.
I can capture and ignore the data error in the form error event, but am I
doing something wrong?
Is there something about locking or default values or primary keys that
avoids this nonsense?
(david)
This is not how I usually code, and I'm not used to it.
Immediately after I start to enter data into a new record, I get a before
update event, and Access tests the validity of some of the fields on the
subform. That is far two early - the record is not complete.
It doesn't really save the record, because I can still escape out of the new
record.
When I don't use master/child fields, I don't get this error (and I don't
get default values automatically inserted into those fields).
The actually error is something like "The datYield can't be null, because
it is a required field". I know that, I just have not entered that field
yet.
I can capture and ignore the data error in the form error event, but am I
doing something wrong?
Is there something about locking or default values or primary keys that
avoids this nonsense?
(david)