Yes, thank you Pr2-eugin, the new code works much better, my only small gripe now would be that all text in the field is selected following inserting the date, so if i begin typing it overwrites it, is there a way to deselect the previous contents so i just get a blinking cursor following the...