Hai,
In my project am using nearly 40 forms. Here am using delivery details forms. In this am storing the records based on the DC number. In this I want to reset the DC number year by year. How can I reset this in my project.
Here this DC number number will be automatically increment in that textbox.
Example:
DC_No : 1/2014...........................10000/2014 in year 2014 and rest this will in next year like
DC_No : 1/2015............................10000/2015 like this. Year by year like wise it will automatically reset. How can I do this in my project.
Please anybody help this question ,I need to finish it quickly. Please suggest any Idea to do this.
Thanks in advance. and also am I waiting for your reply.

Raja TPosted Sep 30, 2015, 1:04 AM
Pavithra LPosted Sep 30, 2015, 12:53 AM
Raja TPosted Sep 25, 2015, 5:06 AM
Pavithra LPosted Sep 25, 2015, 1:50 AM
Raja TPosted Sep 23, 2015, 12:09 PM
1. check before insert record get last inserted year and current year both compare
2.after that if equal no problem insert record in table.
3.If not equal that time u can reset I'd like bellow query
DBCC CHECKIDENT ('Ur table name' , RESEED,1)
My suggestion is use store procedure for above steps easily manage.
I hope understanding my suggestions
Pavithra LPosted Sep 23, 2015, 5:02 AM
Raja TPosted Sep 22, 2015, 9:06 AM
Pavithra LPosted Sep 22, 2015, 8:10 AM
Raja TPosted Sep 22, 2015, 5:26 AM
Raja TPosted Sep 22, 2015, 3:00 AM
Pavithra LPosted Sep 22, 2015, 2:54 AM
Raja TPosted Sep 22, 2015, 2:45 AM
1. You can check current year and month
2. After that you can rest auto increments I'd like below
DBCC CHECKIDENT ('Ur table name' , RESEED,0)