Hi All,
I have wrote the code in the report for creating all customers as employess but my code is not working can anyone will help me. I am attaching the code of look at it and guide me guys
trigger OnAfterGetRecord()
var
Customer: Record Customer;
Employee: Record Employee;
begin
IF Not Employee.GET(Customer."No.") THEN BEGIN
Employee.INIT();
Employee."No." := customer."No.";
Employee.INSERT();
END;
Employee."First Name" := Customer.Name;
Employee.Address := Customer.Address;
Employee."Address 2" := customer."Address 2";
Employee.City := customer.City;
Employee."E-Mail" := customer."E-Mail";
Employee.Modify();
end;
Thanks & Regards
P V Sarath.