REPLACE all brdok with REPLICATE("0",6-LEN(ALLTRIM(STR(VAL(brdok)-172990,6,0))))+ALLTRIM(STR(VAL(brdok)-172990,6,0))