I have a form where users enter a date that later will be use for other stuff. I am looking for some lines of code or a function to put on the After Update event in order to check the validity of such date.
I have a textbox, where I use a mask for short date.
Input mask is 00/99/00;0;_
dd/mm/yy
But if I enter 32/10/05 where 32 is day, 10 is month and 05 is year, this is not a valid date !
Therefore it will take it as the 05th of the month 10, of year 1932
I would like it to display a message advising that it is not a valid date (because of the day 32)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.