Solved

Access 2007 - input mask for date

Posted on 2011-09-12
7
457 Views
Last Modified: 2012-05-12
Hi,

I have date field in my access form which is connected to sql server.

Th properties of End Date field is:

Data: controlsource: MyDate
Input Mask: 00/00C9999;0;0
Event: BeforeUpdate: EventProc
AfterUpdate: EventProc
All: Control Source: MyDate

I keep entering date like: 07/01/2010 but it keep saying that mydate is not matching with inputmask format. I have another startdate field which works fine and the only difference for startdate is in event:
BeforeUpdate (EventProc)
On Key Press(Event Proc)...

how can I fix the problem with End date field?

Thanks in advance
0
Comment
Question by:shmz
7 Comments
 
LVL 75
ID: 36526846
Over the years, I have found for the most part, users hate date input masks.  I would suggest ... no date input mask.

For any date in the current year, at most ... the user only has to type mm-dd and hit Enter or Tab.  The current year will automatically added.

mx
0
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 36526861
As far as the Input Mask, I would suspect you want this:

00-00-0000;0;_

mx
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 36527584
> Over the years, I have found for the most part, users hate date input masks.

Exactly. They seem to add more trouble and confusion than the error message that pops should the user type something not readable as a date.

/gustav
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 77

Expert Comment

by:peter57r
ID: 36527649
There is no difficult data entry problem which cannot be transformed by the judicious use of an input mask ................................................................................................................................................... into a problem which is a thousand times more difficult!!
0
 
LVL 18

Expert Comment

by:Richard Daneke
ID: 36531331
as relates to your question:
  Why does the End Date call the EventProc afterUpdate and the Start Date call the same EventProc before update?
0
 

Author Comment

by:shmz
ID: 36533606
DoDahD:

I am not familiar with access and I haven't created the form so I appreciate if you let me know what happens as a result of this setting?
0
 

Author Closing Comment

by:shmz
ID: 36555080
Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question