Date Input Mask Questions

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
 
J

John W. Vinson

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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Strange behavior with date input mask 1
Input Mask Problem - Date 3
Mask requirements 1
input mask with prefilled date information 1
Input Mask 2
Date Input Mask and Value 2
Input Mask 3
Input mask for date! 0

Top