I am having the following problem.
At run-time I mask the mask edit box date format mm/dd/yy ("##/##/##"
. However if the user enters an invalid date such as 99/88/77 then I want to clear the mask edit box.
This is what I did
Private Sub maskDate1stLetter_LostFocus()
If Not IsDate(maskDate1stLetter.Text) Then
MsgBox "Invalid Date", vbExclamation
End If
End Sub
In the LostFocus how do I empty the mask edit box so the user can re-enter the date?
Thank you!
At run-time I mask the mask edit box date format mm/dd/yy ("##/##/##"
This is what I did
Private Sub maskDate1stLetter_LostFocus()
If Not IsDate(maskDate1stLetter.Text) Then
MsgBox "Invalid Date", vbExclamation
End If
End Sub
In the LostFocus how do I empty the mask edit box so the user can re-enter the date?
Thank you!