PC Review


Reply
Thread Tools Rate Thread

Date Input Mask Questions

 
 
JJ
Guest
Posts: n/a
 
      21st May 2007
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

 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      21st May 2007
On 21 May 2007 12:11:02 -0700, JJ <(E-Mail Removed)> wrote:

>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]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Input mask for date! justin88 General Software 0 28th Sep 2011 03:53 PM
Date Input Mask SITCFanTN Microsoft Access Getting Started 2 24th Jul 2008 09:54 PM
Input mask date syntax-limit input to a number range =?Utf-8?B?QmlsbGlhbQ==?= Microsoft Access Database Table Design 2 18th Nov 2007 03:37 PM
Date format -medium date input mask-French Canadian =?Utf-8?B?QmlsbEQ=?= Microsoft Access Forms 5 15th Jul 2007 01:22 PM
Date input mask questions BobV Microsoft Access Forms 1 13th Feb 2005 04:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 PM.