Input masks

T

tinab

What mask do I enter to make the user have to enter a telephone number
with the area code then a dash then the three numbers then a dash and
then four numbers. The dashes must be entered by the user.
 
W

Wayne Morgan

Access will make this one itself. Click the ... button to the right of the
Input Mask box in the Properties sheet for the control. The button will show
up when you click into the Input Mask box.
 
J

John Vinson

What mask do I enter to make the user have to enter a telephone number
with the area code then a dash then the three numbers then a dash and
then four numbers. The dashes must be entered by the user.

Well... take a look at the online help for Input Masks; it explains
what characters do what! 0 means the user must enter a digit; - means
that a hyphen is required (and it will be filled in automatically if
the user doesn't type it).

Try

000-000-0000;0;_

The 0 means "store the hyphens in the field", the _ means to use an
underscore as a placemarker.
 

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