PC Review


Reply
Thread Tools Rate Thread

Defaul area code

 
 
=?Utf-8?B?Q2hyaXN0aWFuID48Pg==?=
Guest
Posts: n/a
 
      19th Jun 2006
I have a phone number field with the input mask:

!\(999") "000\-0000;;_

How can I have a default area code of 615 when you click on the field to
start entering the number?

Whenever I set up a default value, it has the value there before I click on
the field... I want it to stay blank unless someone begins to enter data.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?V2F5bmUtSS1N?=
Guest
Posts: n/a
 
      19th Jun 2006
Set this to run when your phone number field has the focus - change the
FieldName and FormName -


Private Sub FieldName_GotFocus()
On Error GoTo FieldName_GotFocus_Err
Forms!FormName!FieldName = 615
FieldName_GotFocus_Exit:
Exit Sub
End Sub


--
Wayne
Manchester, England.



"Christian ><>" wrote:

> I have a phone number field with the input mask:
>
> !\(999") "000\-0000;;_
>
> How can I have a default area code of 615 when you click on the field to
> start entering the number?
>
> Whenever I set up a default value, it has the value there before I click on
> the field... I want it to stay blank unless someone begins to enter data.

 
Reply With Quote
 
=?Utf-8?B?Q2hyaXN0aWFuID48Pg==?=
Guest
Posts: n/a
 
      19th Jun 2006
OK Wayne, I finally got the code to work... Thanks.

BUT, it places the 615 at the end of the number, like so:

(___) ___-_615

Is there a way to set it up so that when the user clicks on the field they get

(615) ___-____

and the curser is on the first blank so that they can start typing in the
rest of the number? Then if they need to change the area code, they have to
physically highlight it...

"Wayne-I-M" wrote:

> Set this to run when your phone number field has the focus - change the
> FieldName and FormName -
>
>
> Private Sub FieldName_GotFocus()
> On Error GoTo FieldName_GotFocus_Err
> Forms!FormName!FieldName = 615
> FieldName_GotFocus_Exit:
> Exit Sub
> End Sub
>
>
> --
> Wayne
> Manchester, England.
>
>
>
> "Christian ><>" wrote:
>
> > I have a phone number field with the input mask:
> >
> > !\(999") "000\-0000;;_
> >
> > How can I have a default area code of 615 when you click on the field to
> > start entering the number?
> >
> > Whenever I set up a default value, it has the value there before I click on
> > the field... I want it to stay blank unless someone begins to enter data.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
area codes is auto filling my own 9 digit ph# vs just area code Computer Dummy Microsoft Outlook Contacts 1 28th Jan 2010 10:58 PM
Adding area codes only to phone numbers missing an area code RC Microsoft Excel Misc 4 12th Feb 2008 09:22 PM
[New] Zipoid - ZIP Code, City Name and Area Code Lookup - Zip Code to Zip Code Distance Calculation Mel Freeware 0 22nd Jul 2005 04:13 PM
how to cut local area code prefix in outlook or oe when dialing a loca phone number with local area code prefix? wisedom Microsoft Outlook Contacts 5 10th Mar 2005 10:01 AM
how to cut local area code automatic when dialing a number with local area code prefix? wisedom Microsoft Outlook 4 10th Mar 2005 03:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:49 AM.