Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Microsoft Office Access
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
Create an input mask (MDB)
 

In a Microsoft Access database (Microsoft Access database: A collection of data and objects (such as tables, queries, or forms) that is related to a particular topic or purpose. The Microsoft Jet database engine manages the data.), you can create an input mask (input mask: A format that consists of literal display characters (such as parentheses, periods, and hyphens) and mask characters that specify where data is to be entered as well as what kind of data and how many characters are allowed.) in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.) of a table, query, or form.

Show Create an input mask for a field in table Design view

  1. Open a table in Design view.
  2. In the upper portion of the window, click the field you want to define an input mask for.
  3. In the lower portion of the window, do one of the following:

    Click the Build button Button image next to the InputMask property box to start the Input Mask Wizard, and then follow the instructions in the wizard dialog boxes.

    Type the input mask definition. For more information on defining the input mask, click the InputMask property box and press F1. You must type the input mask definition manually for Number and Currency fields.

Show Create an input mask for a field in query Design view

  1. Open a query in Design view.
  2. In the query design grid (design grid: The grid that you use to design a query or filter in query Design view or in the Advanced Filter/Sort window. For queries, this grid was formerly known as the QBE grid.), place the insertion point in the column for the field you want to change. You can place the insertion point in any row for that field.
  3. Click Properties Button image on the toolbar to open the property sheet for that field.
  4. On the General tab, do one of the following:

    Click the Build button Button image next to the InputMask property to start the Input Mask Wizard, and then follow the instructions in the wizard dialog boxes.

    Type the input mask definition. For more information on defining the input mask, click the InputMask property box and press F1. You must type the input mask definition manually for Number and Currency fields.

ShowCreate an input mask for a control on a form

  1. Open a form in Design view (Design view: A window that shows the design of these database objects: tables, queries, forms, reports, macros, and data access pages. In Design view, you can create new database objects and modify the design of existing ones.).
  2. Select a text box or a combo box, and then click PropertiesButton image on the toolbar to open the control's property sheet.
  3. In the Input Mask property box, do one of the following:

    Type the input mask (input mask: A format that consists of literal display characters (such as parentheses, periods, and hyphens) and mask characters that specify where data is to be entered as well as what kind of data and how many characters are allowed.) definition.

    In a Microsoft Access database (.mdb) (Microsoft Access database: A collection of data and objects (such as tables, queries, or forms) that is related to a particular topic or purpose. The Microsoft Jet database engine manages the data.), click the Build button Button image in the Input Mask property box to start the Input Mask Wizard, and then follow the instructions in the wizard dialog boxes.

advertisement