Solved

Textbox instant formating/checking

Posted on 2001-07-30
2
184 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
Comment Utility
no, include the Masked edit box in your project.
0
 
LVL 4

Author Comment

by:djpileggi
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

7 Experts available now in Live!

Get 1:1 Help Now