TheAceMan1
Programmer
Howdy All ...
In 2003, performing some validation on a date textbox control with the following code:
The code works, however during testing (entering erroneous date) microsoft throws up the following message 1st:
... my message comes after.
Anyone know whats going on here? Is there a fix?
Many thanks in advance ...
See Ya . . .
Be sure to see FAQ219-2884 Worthy Reading!
Also FAQ181-2886 Worthy Reading!
In 2003, performing some validation on a date textbox control with the following code:
Code:
[blue]Private Sub vacDate_BeforeUpdate(Cancel As Integer)
If Not IsDate(Me.vacDate) Then
Cancel = True
Msg = "An UnRecognized Date has been entered!@" & DL & _
"Fix it or hit the 'Esc' Key@"
Style = vbCritical + vbOKOnly
Title = "Definitely a Bad 'Date' ..."
Call uMsg
End If
End Sub[/blue]
The code works, however during testing (entering erroneous date) microsoft throws up the following message 1st:
Microsoft said:[blue]The value you entered isn't valid for this field.
For example you may have entered text in a numeric field or a number larger than the field size setting permits.[/blue]
... my message comes after.
Anyone know whats going on here? Is there a fix?
Many thanks in advance ...
See Ya . . .
Be sure to see FAQ219-2884 Worthy Reading!
Also FAQ181-2886 Worthy Reading!