Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / May 2007

Tip: Looking for answers? Try searching our database.

Date Input Mask Questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JJ - 21 May 2007 20:11 GMT
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
John W. Vinson - 21 May 2007 21:44 GMT
>I have a date field that has the following input mask: "99/99/9999;;_"
>
[quoted text clipped - 13 lines]
>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]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.