Hi,
I think you have missed that field level routine which i have written to populate the value in 0calday based on year.
Initially i checked for only one record so it was not giving me duplicate entry error now i tested for more than 2 record and get the correct output based on the above modified code which i posted in my last post.
So to summarize you need to write two routined
1 Field level routine for 0calday
2 End routine.
All the syntax has already been shared.
It should definitely work.
Hope you get it working this time..
Regards,
AL