Step 1: Go to Tools -> Options

Step 2: Click on “Account Code Format”
Step 3: Follow the rules to setup the Account Code Format
Step 4: Set up the Debtor Code & Creditor Code Format, make sure the length is same as the Account Code Format. (unless the Account Code Format is empty, which means is free format.)

Credit By : Webstation