Validation Text

MCAdude

Registered User.
Local time
Today, 20:33
Joined
Mar 4, 2002
Messages
13
I have a field with a simple date validation. Is it possible to get a validation text that has a text similar like this
"The date should be greater than [fieldname]"
when the validation rule isn't passed?
 
Assuming your [fieldname] is something that's already been entered...

Create code that sets the ValidationText property of your date field to be what you want, ie,

[txtDateField].ValidationText = "The date should be greater than" & [referencefieldname].

Depending on what your referencefieldname is, you could put it in the 'On Lost Focus' of your referencefieldname, or in the 'OnCurrent' event of your form, or wherever, so long as it's before the user enters the Date in your validated DateField.
 

Users who are viewing this thread

Back
Top Bottom