Re: User enter date like "12/05/345
- From: "Karl E. Peterson" <karl@xxxxxxxx>
- Date: Fri, 14 Dec 2007 13:46:20 -0800
angela wrote:
Is there any way to stop the user from entering the date in the above
format? i have tried using the validation rule, default, and inputmask but
the user is still able to enter the date "12/05/345" (where 345 is any random
number) and the validation is not checking it.
"As soon as you idiot-proof something, the world invents a better idiot!"
Dates are probably one of the worst possible, from a raw data input perspective.
A lot of folks simply give up, and use a calendar-type control instead.
Only other choice is to errortrap after an attempted CDate, then check whether a
valid result falls within the acceptable range, and finally hope the user has the
same conception of what order the numbers need be entered in. (ie, what's
02-03-04?)
--
..NET: It's About Trust!
http://vfred.mvps.org
.
- Follow-Ups:
- Re: User enter date like "12/05/345
- From: Tony Toews [MVP]
- Re: User enter date like "12/05/345
- Prev by Date: Office automation via VS2008
- Next by Date: Re: User enter date like "12/05/345
- Previous by thread: Re: User enter date like "12/05/345
- Next by thread: Re: User enter date like "12/05/345
- Index(es):
Relevant Pages
|