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
316 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

737 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