How to display vendor detail from vendor code in report

neellotusneellotus Member Posts: 18
Hi All,

I am creating new report from two tables Enquiry & Enquiry Line. And Enquiry Line table contain vendor numbers in "Vendor No." field.

Now i want to print vendor detail on the header of report so i write following code on Enquiry Line - OnAfterGetRecord():-

Enquiry Line - OnAfterGetRecord()

Vendrs.RESET;
Vendrs.SETRANGE(Vendrs."No.","Vendor No.");
IF Vendrs.FIND('-') THEN
vend:=Vendrs."No.";
name:=Vendrs.Name;
add:=Vendrs.Address;

Vendrs is a Record type variable of vendor table.

But it is not displaying vendor details in report, pls tell me where i am doing wrong i will be very thankfull to you.



Neel

Comments

Sign In or Register to comment.