I have one number series in which start no. is 20100101-001 to 20011231-999 (its formate like YYYYMMDD-DocNo)
Now for assigning no i have to do like TODAYDATE-DocNo .... so i have to assign this number based on today date and latest document no. + 1... how can i achieve this?
0
Comments
Put the following line in the OnInsert trigger of your table:
http://www.mibuso.com/forum/viewtopic.php?f=23&t=42434
note: 999 documents per year are not much (less than 3 per day) ; if this will be your official serial number, i suggest you to increment it at least to 4 digits (9999 documents per year)
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog