thisform.text1.value=(RIGHT(STR(lnYear),4),2) + '_' + RIGHT(STR(10000+1,5)),4 and as thisform.text1.value=(RIGHT(STR(lnYear),4),2) + '_' + RIGHT(STR(10000+1,5),4)thanks.
> thisform.text1.value=(RIGHT(STR(lnYear,4),2) + '_' + RIGHT(STR(10000+1,5),4)) >>
>RIGHT(STR(10000+1,5),4)) >>
>> thisform.text1.value=(RIGHT(STR(lnYear),4),2) + '_' + RIGHT(STR(10000+1,5),4)) >>>>i change it as befor it works,but still if i change my calander i get the same result.
>>thisform.text1.value=(RIGHT(STR(YEAR(billinfo.billdate),4),2) + '_'+RIGHT(STR(10000+billinfo.billno+1,5),4)) >>>>thanks.