Solved

How do I force 4-digit entry for year (2010) and either not accept (10) or auto convert it to (2010)

Posted on 2010-09-23
4
297 Views
Last Modified: 2012-06-21
We have a field whare the entry should be four digits for a year and not two.  Some users insist on entering 10 for 2010 while others enter 2010.  For searching purposes and for the look of reports, we want them to enter the complete 4-digits or let the computer convert it to 2010.  Also, how can we be sure it will not let them enter 20 or 19 and confuse our printouts?
Thanks for your assistance.
0
Comment
Question by:sherman6789
  • 2
4 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 125 total points
Comment Utility
Set this Input Mask on that text box:

00/00/0000;0;_

mx
0
 
LVL 4

Assisted Solution

by:dansperber
dansperber earned 125 total points
Comment Utility
I'd make sure the text box was set to Date/Time format then change the input mask as stated above...if you only want the year, leave off the beginning 00/00/
0
 

Author Comment

by:sherman6789
Comment Utility
Thank you for your responses.  You both have just answered two of my other questions.  Thank you.  I am splitting the points.

WRS
0
 

Author Closing Comment

by:sherman6789
Comment Utility
Both  DatabaseMX and dansperber gave me the information I needed to solve this problem.  In addition, their answers have given me the information I needed for two other similar questions that I asked.  I am not sure how to close the other questions since these answers told me what I need to know.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now