Dear all,
I want to know how can I auto populate any field on selection of a number from a lookup field. Similar to what we do in the purchase invoice form wherein we select the buy from vendor number and we have the name, contact number and the address filled up automatically.
regards,
Naval.
you can use code it like this in the “yourfield” of your Master table.
IF gtable1.GET(yourfield) THEN BEGIN
Value1 := gtable1.Value1;
Value1 := gtable1.Value1;
end;
where Value1 is your rec’s values, gtable1 is the table from which you need to lookup!
gtable1.Value1 is the corresponding table values.
All the best:)
Thank you very much Shona. The solution that you gave was of great help looking forward
to get such great solutions from you in future.
regards,
Naval [;)]