Dear friends,
I am using the following code in the afterupdate event of my textbox:
My problem is that if the user entered false date such as 15-15-2009
The Ms Access error message is displayed "The value you entered is not valid for this field" instead of my own message which is "invalid date!"
How this problem can be solved?
Any help will be highly appreciated
I am using the following code in the afterupdate event of my textbox:
Code:
If Not IsDate([MyTextBox]) Then MsgBox "Invalid date!" Else 'do nothing, date is OK End If
The Ms Access error message is displayed "The value you entered is not valid for this field" instead of my own message which is "invalid date!"
How this problem can be solved?
Any help will be highly appreciated
Comment