Date Input Mask Questions

  • Thread starter Thread starter JJ
  • Start date Start date
J

JJ

I have a date field that has the following input mask: "99/99/9999;;_"

I have a bound text box control on a form that is bound to this field.

I am trying to accomplish the following:
1) When a user clicks or tabs to the control, the cursor should start
at the beginning of the control.
2) When they enter the month or day, the user can either tab to the
next section of the date or it automatically moves to the next
section.

Are any of these situations possible to create? It doesn't seem there
is a setting for this anywhere, but I would imagine it is possible to
do in code.

Thanks in advance!
JJ
 
I have a date field that has the following input mask: "99/99/9999;;_"

I have a bound text box control on a form that is bound to this field.

I am trying to accomplish the following:
1) When a user clicks or tabs to the control, the cursor should start
at the beginning of the control.
2) When they enter the month or day, the user can either tab to the
next section of the date or it automatically moves to the next
section.

Are any of these situations possible to create? It doesn't seem there
is a setting for this anywhere, but I would imagine it is possible to
do in code.

Thanks in advance!
JJ

I'd be inclined simply not to use any input mask at all. Access is pretty good
at parsing dates - typing 3/8<tab> into a textbox bound to a date/time field
will fill in 03/08/2007 without any masks, code, or stress. The only downside
is the user needs to use the / key - but that's just as easy to reach as the
tab key, and probably more familiar to anyone who types a lot.

John W. Vinson [MVP]
 
Back
Top