You need to make a peace of program to go throught the records you want to copy and copy them to another record using record.changecompany(companyname) before in the record you want to copy to.
For example:
CustomerTo.ChangeCompany('My Company');
if customerFrom.findset(false) then begin
repeat
CustomerTo.init();
CustomerTo := CustomerFrom;
CustomerT.Insert();
until CustomerFrom.next() = 0;
end;
Answers
For example:
CustomerTo.ChangeCompany('My Company');
if customerFrom.findset(false) then begin
repeat
CustomerTo.init();
CustomerTo := CustomerFrom;
CustomerT.Insert();
until CustomerFrom.next() = 0;
end;