I would like to know if there is some way to format a textbox, so that a user can only enter a date ??
(I do not want to use a DTPicker)
thanks
Printable View
I would like to know if there is some way to format a textbox, so that a user can only enter a date ??
(I do not want to use a DTPicker)
thanks
use isdate() function
If you want absolute control over the user's input, better use a Masked Edit box with a date format of your choice. You can find it under Project > Components > Microsoft Masked Edit Control.
With an ordinary textbox, you can validate the date using the IsDate() function, but you cannot control the user's input the way you can do with DTPicker or a Masked Edit box. It's not impossible, but the effort is not worth it.
.