Rename Code FixAsset

Hi Everybody

 

I want rename Code (FA). I create 1 table name FA_Temp with 2 filed (FA Old, FA New). I create 1 report and write code rename Code FA on table Fix Asset (ID 5600). But it's not work.

Fixed Asset - OnAfterGetRecord()


IF FA_Temp.GET("No.") THEN BEGIN
    CodeFA:=FA_Temp."FA New";
    lRec_FixedAsset.RENAME(CodeFA);
END;

Please help me fix code. Thanks very much.

Related
Recommended