Solved

Textbox instant formating/checking

Posted on 2001-07-30
2
188 Views
Last Modified: 2012-06-21
Ok I know there is a way for text boxes to be set up, when a user is typing in information it will automatically format it.  For example, the user types in 9 numbers, but the text box knows to put in the -'s because it is a social security number. 000-00-0000.  The text box automatically inserts the -'s making it easier on the user. Example 2, user types in 10 numbers, but the textbox automatically formats it as (000) 000-0000.  As for an example of a catch, if users finger accidentally hits the P key instead of 0 when entering into a social, the keystroke will be ignored.  

DataFormat property is not it, or at least i dont believe it is it.  I thought about using the masking command, but it doesnt recognize it.  Is there a library I need to include in the references to use that? Or is there another way, without tons of code to check every possible problem.

Thank you for your time,

David J. Pileggi Jr.
0
Comment
Question by:djpileggi
2 Comments
 
LVL 4

Accepted Solution

by:
nutwiss earned 50 total points
ID: 6334847
no, include the Masked edit box in your project.
0
 
LVL 4

Author Comment

by:djpileggi
ID: 6335599
Well done, there are so many components available.  Sometimes we need more than one brain to keep track of them all.  Well done.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 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

18 Experts available now in Live!

Get 1:1 Help Now