but don't use the lookup only when your textbox 1 is editable and the user can insert manuell datas.
Because you need it then also on OnAfterValidate() (OrInputChange).
But what is with the case that the form is opend or a new rec is loaded? So you need also the filter for recset2 when you scroll trough the recs or open the form.
Comments
IF Form.RUNMODAL(0, RecordSetLookup) = ACTION::LookupOK THEN
RecordsetForm.SETRANGE(Field, Recordsetlookupfield);
Something like this ?
Because you need it then also on OnAfterValidate() (OrInputChange).
But what is with the case that the form is opend or a new rec is loaded? So you need also the filter for recset2 when you scroll trough the recs or open the form.