Defaul area code

G

Guest

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.
 
G

Guest

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
 
G

Guest

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...
 

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

Similar Threads


Top