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
0
Comments
You use GET function to retrieve vendor
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
Vendrs.RESET;
Vendrs.SETRANGE("No.","Vendor No.");
IF Vendrs.FINDFIRST THEN BEGIN
vend:=Vendrs."No.";
name:=Vendrs.Name;
add:=Vendrs.Address;
END;