default area code-but changeable

B

Blane

When adding contacts, most of them live in the 850 area
code. to save time, I would like to have this area code
pop into the phone number field so that all I have to do
is type the rest of the 7 digits. However, I will need to
type in other area codes from time to time as some people
live out state. I can get the 850 to show up in the area
code all the time, but can't figure out how to type in an
over ride area code.
 
D

Dan Artuso

HI,
If you set the default value of the control to 850,
users will still be able to type in anything they want.
Is that what you're after?
 
J

John Vinson

When adding contacts, most of them live in the 850 area
code. to save time, I would like to have this area code
pop into the phone number field so that all I have to do
is type the rest of the 7 digits. However, I will need to
type in other area codes from time to time as some people
live out state. I can get the 850 to show up in the area
code all the time, but can't figure out how to type in an
over ride area code.

It's a mild pain in the neck but can be done without too much trouble.
Set the Phone field's Default property to

850

and set its SelStart property to 4 in the textbox's GotFocus event, to
put the cursor immediately after the area code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top