Hi,
I've a requirement to modify a paticular field in which is primary key. It works for other tables but when I'm using RENAME statement in REPEAT UNTIL gives the error 'the number of field arguments does not match the primary key size'
Code:
//Change Driver in Amortization Lines
CF_AmortizationLinesTable.RESET;
CF_AmortizationLinesTable.SETRANGE("Contract No",CF_ContractsNo);
IF CF_AmortizationLinesTable.FINDFIRST THEN BEGIN
REPEAT
CF_AmortizationLinesTable.RENAME(CF_AmortizationLinesTable."Leased to Driver No.",DriverNo);
UNTIL CF_AmortizationLinesTable.NEXT = 0;
MESSAGE('AL');
END
ELSE
ERROR('Create Amortization Schedule prior assuming the Lease Driver!!');
Note: CF_AmortizationLines Table has 3 keys No., Line No, Leased to Driver No..
Kindly suggest.
Thanks
*This post is locked for comments