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
310 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 - Microsoft MVP, Access and Data Platform) earned 125 total points
ID: 33749142
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
ID: 33749170
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
ID: 33749225
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
ID: 33749281
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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
We were having a lot of "Heartbeat Alerts" in our SCOM environment, now "Heartbeat" in a SCOM environment for those of you who might not be familiar with SCOM is a packet of data sent from the agent to the management server on a regular basis, basic…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…

828 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