Is it possible The person do not enter data manually in Text field on form.
he use the lookup button on that text field. he selects the data through lokup button only.
Hi Denster,
Thanks for ur reply. If we set the property editable as No then we can not select record in the lookup table. the lookup data will not come to the text field if it is in non editable mode.
You can put an error in the OnValidate-trigger of the field. And you can put this code in the OnLookup-trigger of the field:
recTheTable."Primary Key Field" := "Your Field On The Form";
IF FORM.RUNMODAL(0,recTheTable) = ACTION::LOOKUPOK THEN BEGIN
VALIDATE("Your Field On The Form",recTheTable."Primary Key Field");
CurrForm.SAVERECORD;
END;
Regards,Alain Krikilion No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
Comments
RIS Plus, LLC
Thanks for ur reply. If we set the property editable as No then we can not select record in the lookup table. the lookup data will not come to the text field if it is in non editable mode.
Thanks & Regards,
Kishore.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!