Hi, I have uploaded the file which I am working. I am facing 2 issues with the application

1. In "Date of Enrollment" textbox I have written code if anyone trying to leave blank that textbox it needs to show msg "Please enter Date of enrollment". I have written this code in Textbox Exit event which not working.

2. After completion of data entry if I close the form it is showing message boxes which I have given for validation. I didn't understand why I am getting message box after closing the form.

Please help me with these 2 issues that would be great. I tried different ways but no luck, that is the reason I am posting in this forum to take help from the experts.

Thank you so much