Table Design   «Prev  Next»
Lesson 4 Working with input masks
Objective Use the Input Mask Wizard to specify data input formats in Access 365

Working with Input Masks

An input mask is a field-level pattern that guides (and optionally enforces) how data is typed into a table field or a bound control on a form. Instead of letting users enter “anything,” an input mask prompts for the exact shape of the value you want—such as digits-only phone numbers, ZIP codes, or Social Security numbers.

Input masks are primarily a data entry consistency tool. They reduce typos, improve uniformity, and make the user experience smoother by showing placeholders (for example, (___) ___-____) while the user types.

Common use cases

Input masks work best when the value has a predictable structure:

Input masks vs data validation

An important detail: an input mask does not guarantee that the value is “real”—it only constrains the shape of the data. For example, a mask can require 999-99-9999, but it cannot tell whether that number is legitimate.

For business correctness, pair input masks with:

Why the Input Mask Wizard matters

You can type mask expressions manually, but it’s easy to make mistakes. The Input Mask Wizard is the safer and faster approach because it:

Launching the Input Mask Wizard

You launch the wizard from Table Design view (or from the Property Sheet for a bound form control) by clicking the Builder button next to the Input Mask property.

Builder button
Builder button (opens the Input Mask Wizard for the Input Mask property).

Example: applying a Social Security number mask

The slideshow below demonstrates the typical workflow: create a field, open the wizard, select a mask, and then test entry. The example uses an SSN-style mask to illustrate mechanics.

First, a field called SSN is added to the Consultants table.
1) Add a new field (for example, SSN) to the table in Design view.
Then, after you click the builder button next to the Input Mask property
2) Click the Builder button next to the Input Mask property to start the Input Mask Wizard.
After picking the mask to use, click Finish
3) Select the mask template you want and click Finish.
When entering information, here is what the input mask for the field will look like.
4) Test entry: placeholders guide the user and enforce the required pattern.

How Access stores an input mask

In Access, an input mask is commonly described as having three parts separated by semicolons:

  1. Mask pattern (required) — the placeholder characters and any literal formatting characters (such as (, ), -, .).
  2. Store literals (optional) — determines whether literal characters are stored in the field along with the typed data.
    • 0 = store literal characters (formatting becomes part of the stored value)
    • 1 = do not store literals (formatting is only displayed)
  3. Placeholder character (optional) — the character shown for unfilled positions (underscore is common).

Example structure:

(999) 000-0000;0;_

In that example, the parentheses and hyphen are literals, the “store literals” choice is 0 (store them), and the placeholder is _.

Mask characters you’ll see often

You don’t need to memorize every symbol to use masks effectively, but a few show up constantly:

This is why the wizard is valuable: it supplies good defaults and prevents subtle formatting mistakes.

Where to apply input masks

Input masks can be applied in multiple places, but you should decide based on your design goal:

Design tips and pitfalls

Next step

In the next lesson, you will learn how to set up fields and controls that use Combo Boxes and List Boxes to standardize data input even further.

Input Masks - Exercise

Click the Exercise link below to practice using the Input Mask Wizard to create an input mask.
Input Masks - Exercise

SEMrush Software