Input Mask Problem

Xaverria

Registered User.
Local time
Tomorrow, 06:49
Joined
Nov 29, 2004
Messages
17
I managed to change my format of a textbox that display date to (dd/mm/yyyy), but how do i change my input mask to the same format?
 
Xaverria said:
I managed to change my format of a textbox that display date to (dd/mm/yyyy), but how do i change my input mask to the same format?

99/99/9999;0;" "

Thats one I copied of a databse.

I also think just

99/99/9999 will do fine
 
But i need to verify the value like (dd) has a value of 0-31, (mm), has a value of 1-12, ensuring a valid date is input.
 
No input mask will do that. If you define the field as a date/time data type, Jet will ensure that only a valid date is accepted. You only need to edit the data if you need to limit the date to a particular range.

But i need to verify the value like (dd) has a value of 0-31, (mm), has a value of 1-12, ensuring a valid date is input.
- this will not ensure that a date is valid. A real date edit (such as the one built in)validates day within month within year and knows which years are leap years.

FYI, I never use input masks for date fields. I find them more annoying than useful. They will limit characters to numeric and force certain numbers of characters to be entered but input masks contain no concept of a date and therefore will allow virtually any numeric value to be entered. It is only when the record is being saved that Jet edits the field for a valid date that an error occurs.
 

Users who are viewing this thread

Back
Top Bottom