Creating Input Masks

graphics/microsoft88.gif

An input mask allows you to control what values a database user can enter into a field. Input masks consist of literal characters , such as spaces, dots, parentheses, and placeholders. A placeholder is a text character, such as the underline symbol (_), that indicates where the user should insert values. An input mask for a phone number field might appear as follows : (_ _ _) _ _ _ - _ _ _ _ . The parenthesis and dash characters act as literal characters, and the underscore character acts as a placeholder for the phone number values. Access provides several predefined input masks, which cover most situations, but you can create your own customized masks, if necessary. The Input Mask Wizard is available only for text and date fields. If you want to create an input mask for numeric fields, you must enter the formatting symbols yourself.

Specify an Input Mask

graphics/one_icon.jpg

Display the table in Design view, and then click a field for which you want to specify an input mask.

graphics/two_icon.jpg

Click the Input Mask box.

graphics/three_icon.jpg

Click the Build button to start the Input Mask Wizard.

graphics/four_icon.jpg

Scroll thru the predefined list to find an input mask form.

graphics/five_icon.jpg

Type some sample values to see how the input mask affects your sample values, and then click Next.

graphics/six_icon.jpg

If you change the input mask, type new formatting codes.

graphics/seven_icon.jpg

If you want to display a different placeholder, click the Placeholder list arrow, and select the placeholder you want to use.

graphics/eight_icon.jpg

Enter values to test the final version of your input mask, and then click Next.

graphics/nine_icon.jpg

Indicate whether you want to store the input mask symbols along with the data values.

graphics/ten_icon.jpg

Click Next, and then click Finish.

graphics/12inf33.jpg

graphics/12inf34.jpg



Show Me. Microsoft Office 2003
Show Me Microsoft Office 2003
ISBN: 0789730073
EAN: 2147483647
Year: 2002
Pages: 418

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net