M
Michael Allen
I have a main form containing a sub-form. The main form includes a text
box with the control source being a Dlookup expression. The value of
this control is dependant on what is selecetd in a combo box in the
subform. I therefore need the control in the main form to update when
the value in the subform combo box changes. I therefore have an
AfterUpdate Event Procedure as follows:-
Me.Parent![txtDailyScore].Requery
This does update the txtDailyScore value in the main form but my
problem is that the focus keeps moving to the first record in the
sub-form when the event occurs.
So say I am adding data in the 10th record in the sub-form and I tab to
the field following the combo box, focus immediately goes to the first
field/record in the subform. How can I prevent this.
Thanks,
Mike
box with the control source being a Dlookup expression. The value of
this control is dependant on what is selecetd in a combo box in the
subform. I therefore need the control in the main form to update when
the value in the subform combo box changes. I therefore have an
AfterUpdate Event Procedure as follows:-
Me.Parent![txtDailyScore].Requery
This does update the txtDailyScore value in the main form but my
problem is that the focus keeps moving to the first record in the
sub-form when the event occurs.
So say I am adding data in the 10th record in the sub-form and I tab to
the field following the combo box, focus immediately goes to the first
field/record in the subform. How can I prevent this.
Thanks,
Mike