default area code-but changeable

  • Thread starter Thread starter Blane
  • Start date Start date
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.
 
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?
 
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.
 
Back
Top