Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Input Mask/Format - TextBox

Status
Not open for further replies.

mastertorr

Programmer
Dec 21, 2006
36
0
0
CA
I have a text box on a form, which will accept the date in the format of mm/dd/yyyy. Is there a way to adjust the input mask to be mm/dd/4DigitCurrentYear (e.g. mm/dd/2009)
so the year would be in the input mask by default?

I have tried this: mm/dd/"2009" or mm/dd/2\0\0\9 as the input mask as well...but I get an error on the lost focus of the textbox.

Any help would be appreciated, and would prefer to stay away from having to use 3 textboxes if possible.

Thanks in advance.
 
a simple way would be to put date() in the default property.


Ian Mayor (UK)
Program Error
9 times out of 10 I know what I'm talking about. This must be my tenth reply.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top