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