?
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
Medium Priority
?
330 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 500 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 500 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

777 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