Solved

Formatting a text box for a Date

Posted on 2001-08-14
6
154 Views
Last Modified: 2010-05-02
i have a text box on a form where i would like users to enter in a date. ie.  08/14/2001. I would like to have the "/" already in the text boxes so users would only have to enter in the numbers. Any suggestions?
0
Comment
Question by:Maxim10553
[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
  • 3
  • 2
6 Comments
 
LVL 11

Accepted Solution

by:
Otana earned 50 total points
ID: 6384461
use the Microsoft masked edit control. set the inputmask to ##/##/####.
0
 
LVL 14

Expert Comment

by:wsh2
ID: 6384509
masked edit control (as stated by Otana)

or

calendar control

or

Use three Textbox's

and/or

trap the Textbox's keydown event.. testing for only numeric entry.. along with a test for the length of the entered text.. so that you can then dynamically add the slashes where they belong.
0
 
LVL 3

Author Comment

by:Maxim10553
ID: 6384579
thanks guys. exactly what i was looking for
0
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!

 
LVL 3

Author Comment

by:Maxim10553
ID: 6384605
hey, one more thing. what about a price format. any suggestions on that? guessing the input mask has to be dynamic in nature. ie $10.10, $1000.10, $ 10000.10
0
 
LVL 14

Expert Comment

by:wsh2
ID: 6384855
Tip.. Dollar signs only make your data harder to read.. cluttering your presentation. If a field is dollar.. place the dollar symbol in a Label caption next to your text box.
0
 
LVL 3

Author Comment

by:Maxim10553
ID: 6384965
thanks, threw some points up for you. will try what you said
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

691 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