Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Number at mytext
Message
From
05/12/2004 15:54:52
 
 
To
05/12/2004 15:46:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00966918
Message ID:
00967012
Views:
31
You need a table to keep track of the year and bill number, I suggest you use one field for each. If you already have a field with the date, let's say you call it invdate, you can use invyear=date(invdate), and you don't need a seperate field for the year. The billno you must increment programmatically.

>hi,
>i try with this code under it works,how i can do that autamtic serial
>
>LOCAL invyear,billno
>invyear=4
>billno=1
>thisform.text1.value=RIGHT(STR(1e5+BillNo,6),4)+'-'+RIGHT(STR(invYear,4),2)
>
>
>best regards.
>>>m.qasem
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform