Thanks your code solved the error part. However, it did not work the way as i thought i would. The code only cleared the last number of the year if it was earlier that the start date but i want to clear everything in the field. Also, subsequent times that i entered an earlier date on purpose...