Input Mask

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I need to format the following telephone input mask
(123) - to be displayed in a control. The cursor
must be ready for input after ")". The user must be able
to use the left arrow to edit the contents (123) (or the
back space without deleting the ")"if possible). What
will the mask look like.
Thanks Josh
 
Hi,
I need to format the following telephone input mask
(123) - to be displayed in a control. The cursor
must be ready for input after ")". The user must be able
to use the left arrow to edit the contents (123) (or the
back space without deleting the ")"if possible). What
will the mask look like.
Thanks Josh

if you are saving the mask with the data, the mask looks like this:

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

Code the [PhoneField] Enter event:
Me![PhoneField].SelStart = 6


If you are not saving the mask with the data, the Input mask looks
like this:

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

Code the [PhoneField] Enter event:
Me![PhoneField].SelStart = 4

This is only effective if you tab into the field, not if you click in
the field with the cursor.
 
Back
Top