Hi there,
I have got a column named SNO. Its value should be a combination of the current year & and the serial no. E.G. 2007001,2007002,2007003 ....etc
My problem started with the new year 2008. I need to reset the counter when it is a new year to start from number 1 again. How do I check if it is a new year ?!
Also, the way I am giving new SNOs is that I count how many records in the table and then increment that by one, then concat it with the System.DateTime.Today.Year.
What is the best way of assigning SNO number in the format above and it automatically resets the number to 1 ???????
I have got a column named SNO. Its value should be a combination of the current year & and the serial no. E.G. 2007001,2007002,2007003 ....etc
My problem started with the new year 2008. I need to reset the counter when it is a new year to start from number 1 again. How do I check if it is a new year ?!
Also, the way I am giving new SNOs is that I count how many records in the table and then increment that by one, then concat it with the System.DateTime.Today.Year.
What is the best way of assigning SNO number in the format above and it automatically resets the number to 1 ???????