What exactly are you trying to do? If you are just trying to display the customer information, then just display the record you are retrieving. Why are you creating the new record?
am not trying to create a new rcrd nd al…if i select the customer no frpm the lookup table,the following fields should be autofilled …am getting it using GETfunction…my doubt is wats wrong in n that code??? how to use setfilter,setrange here???
i hope you have created new customer table and give look up to No field. so that you can select the customer from the lookup. once you have selected a single customer his name,address should be filled in rest of the fields for this you have to write code on
No. - OnValidate() trigger of newly created table code is
IF “No.” <> xRec.“No.” THEN
BEGIN
RecCust.SETRANGE(RecCust.“No.”,“No.”);
IF RecCust.FINDFIRST THEN
BEGIN
Name := RecCust.Name;
“Search Name” := RecCust.“Search Name”;
“Name 2” := RecCust.“Name 2”;
Address := RecCust.Address;
END;
END;