I have a textbox in a form in a word template.
the user has to fill in the date in this textbox.
The regional settings is a European country. The date format is "d mmmm yyyyy"
In the code the date is checked with IsDate(vlxContol.Text)
For all clearness":
European date = d-m-y
US date = m-d-y
When I fill in a date 13-10-2002 I got a "TRUE" and the date is filled in as 13 october 2002.
That's a good situation for me.
But when I fill in a date 10-13-2002 I got also a "TRUE" but the date is also filled as 13 october 2002.
How can I change my code that the date 10-13-2002 is not accepted as a valid date?
Hope someone can help me,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->
the user has to fill in the date in this textbox.
The regional settings is a European country. The date format is "d mmmm yyyyy"
In the code the date is checked with IsDate(vlxContol.Text)
For all clearness":
European date = d-m-y
US date = m-d-y
When I fill in a date 13-10-2002 I got a "TRUE" and the date is filled in as 13 october 2002.
That's a good situation for me.
But when I fill in a date 10-13-2002 I got also a "TRUE" but the date is also filled as 13 october 2002.
How can I change my code that the date 10-13-2002 is not accepted as a valid date?
Hope someone can help me,
Erik <-- My sport: Boomerang throwing !!
!! Many Happy Returns !! -->