Read the error message carefully Mohammed and check your work. The error is that you are closing the first STR() function before the ",4" so the STR() function is not getting the length parameter. It should read:
thisform.text1.value=(RIGHT(STR(lnYear,4),2) + '_' + RIGHT(STR(10000+1,5),4))
Plus; the part
RIGHT(STR(10000+1,5),4))
seems pointless although I have not followed the thread so perhaps I missed something.
Also, cut out the old previous stuff from your replies which otherwise creates gigantic posts.
>hello,
>i get error message (function name is missing)at this line under
>
>
> 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.
>m.qasem
>
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.