hello,
thank you,it works
best regards.
m.qasem
>You get the same because you do the same ... Slow down and read it properly. I said the first STR() was wrong not the second one. Count the open/close brackets - match them properly. This is a very simple syntax problem that you are not spending enough time on to fix yourself.
>
>
> thisform.text1.value=(RIGHT(STR(lnYear,4),2) + '_' + RIGHT(STR(10000+1,5),4))
>
>
>
>
>>hi,
>>thank you,
>>i try as under,i get the same
>>
>>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.
>>m.qasem
>>
>>>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
>>>>
>>>>