G
Guest
I have a form, which contains (among other controls) a text field and a
sub-form, containing one field displayed as a continuous form.
when I move from one record to the other, I want to check that the field has
a value and the subform holds at least one value.
I'm using the BeforeUpdate event on the form to do this, checking IsNull for
the field and Me.frm_SubForm.Form.Recordset.RecordCount = 0 for the subform.
This works fine for changing records, but the BeforeUpdate event fires when
I move from the form into the subform, spots that there's no data in the
subForm's recordset and plonks me back into the previous field of the main
form.
I've been trying to find a reference to the sequence of events that fires
when moving from a form to a subform, but with no luck.
Is this sequence documented anywhere? Does anyone have any suggestions as to
how I can get around this problem?
Thanks in advance,
Adrian
sub-form, containing one field displayed as a continuous form.
when I move from one record to the other, I want to check that the field has
a value and the subform holds at least one value.
I'm using the BeforeUpdate event on the form to do this, checking IsNull for
the field and Me.frm_SubForm.Form.Recordset.RecordCount = 0 for the subform.
This works fine for changing records, but the BeforeUpdate event fires when
I move from the form into the subform, spots that there's no data in the
subForm's recordset and plonks me back into the previous field of the main
form.
I've been trying to find a reference to the sequence of events that fires
when moving from a form to a subform, but with no luck.
Is this sequence documented anywhere? Does anyone have any suggestions as to
how I can get around this problem?
Thanks in advance,
Adrian