Hello,
I'm using the code below to perform a validation check on a field. unfortunately i keep getting an error13 message that says 'There seems to be a problem with your date'
Any suggestiong ?
Thanks
******** CODE ******************
'DOB must not be greater than today
If CDate("#&Me.txtDOB&#" > Date Then
MsgBox "Please re-enter Date of Birth", vbExclamation
ValidateFormData = False
GoTo Exit_ValidateFormData
End If
I'm using the code below to perform a validation check on a field. unfortunately i keep getting an error13 message that says 'There seems to be a problem with your date'
Any suggestiong ?
Thanks
******** CODE ******************
'DOB must not be greater than today
If CDate("#&Me.txtDOB&#" > Date Then
MsgBox "Please re-enter Date of Birth", vbExclamation
ValidateFormData = False
GoTo Exit_ValidateFormData
End If