In Microsoft Access for Windows, how do I format a cell to automatically put the hyphens in a Social Security number?
Note: At Indiana University, sensitive information (e.g., Social Security numbers, financial data, personnel records) should be collected, manipulated, stored, or shared according to legal and university functional requirements related to the specific use involved, as well as data and security policies of the university. For more information, contact the university Data Steward for the data subject area involved. For a listing of the Committee of Data Stewards, see the University Information Policy Office (UIPO) Institutional Data Management web site.
Also, see Best Practices for Securing IT Resources.
In Access, you can use the Input Mask Wizard for many common formatting features, including Social Security number formatting. If the Input Mask Wizard is not installed on your computer, you may receive an error message such as "This feature isn't installed". Follow the appropriate instructions below for installing and using the Input Mask Wizard, or for formatting Social Security numbers without the Wizard:
Access 2002 and 2003
Note: Access 2002 is the version of Access distributed with Office XP.
In Office XP and 2003, use the "Installed on 1st Use" feature to add components. Input Mask, part of the Additional Wizards in Access, is by default set to install on first use. To install the Additional Wizards:
- From the
Viewmenu, selectDesign View.
- Set the "Data Type" to
Text.
- At the bottom half of the screen, select the
Generaltab, and then click theInput Maskfield in the box besideInput Mask.
- To the right of the field, click
...(the ellipsis icon that appears). This will automatically inform you if the feature is not installed. If it is not, you'll be prompted to load your Office CD; the Additional Wizards will then install.
- To save the table, once the Wizard is installed, from the
Filemenu, chooseSave.
Note: The "Field Name:" field will require you to enter some text. Also, the "Data Type:" field must haveTextselected. (This is a change from previous versions of Access whereNumberwas the proper selection.) If the table is not saved properly, then the next step will prompt you to do so. Also, if you do not first fill in the required fields, you will continue to see a "Must save table first" prompt over and over with no indication that the table was not saved properly. To avoid these problems, save the table with the "Field Name:" and "Data Type:" fields filled.
- Format the cell by clicking
...(the ellipsis), then selectSocial Security number, and then follow the instructions in the Wizard.
Access 2000
Office 2000's "Installed on 1st Use" feature makes it easy to add components when needed. Input Mask, part of the Additional Wizards in Access 2000, is by default set to install on first use. To install the Additional Wizards:
- From the
Viewmenu, selectDesign View.
- In the "Data Type" field, select
number.
- At the bottom half of the screen, select the
Generaltab, and then clickInput Maskor the box besideInput Mask.
- To the right of the field, click
...(the ellipsis). This will automatically inform you if the feature is not installed. If it is not, it will ask you to load your Office 2000 CD and will then install the Additional Wizards.
- Once the Wizard is installed, if necessary, format the cell by
clicking
...(the ellipsis), selectingSocial Security number, and following the instructions in the Wizard.
Access 97
- Close any Microsoft applications.
- Insert your Microsoft Access or Microsoft Office Setup CD into the
appropriate drive.
- On the
Installationscreen, chooseCustom.
- Highlight
MS Access. Click theChange Optionbutton.
- Check
Advanced Wizards, and then clickOK.
- When the
Setupscreen reappears, clickContinue.
To format the cell without the Input Mask Wizard
- In Access, from the
Viewmenu, selectDesign View. In the "Data Type" field, selectnumber.
- In the "Input Mask" field, enter the following text for Access 2000: 000-00-000;;_ For Access 97 type: 000\-00\-0000;;_
Now you can enter Social Security numbers in a cell, and Access will add the hyphens automatically.
Last modified on May 13, 2009.







