Editing and Modifying a Database
After you create a database from scratch or from a template, you need to modify it by giving each field a descriptive name, defining the size of each field, or adding and deleting a field.
Naming a Field
If you create a database from scratch, Access displays generic field names such as Field1. If you create a database from a template, you will see the descriptive field names, but you may still want to rename the fields to something else. To rename a field, follow these steps:
- Click the Office Button and then choose Open. The Open dialog box appears and then Click the Access database file you want to modify and then click Open. Access displays your chosen database.
- In the All Tables pane on the left of the screen, double-click the table that contains the fields you want to rename. Access displays the Datasheet view of your database and then click the Datasheet tab.
- Click the field (column head) that you want to rename.
- Click the Rename icon in the Fields & Columns group. Access highlights the field name.
- Type a new name for your field and then click outside the field name when you are done.
Adding and Deleting a Field
Sometimes you may need to add a field to make room to store new information. Other times, you may want to delete a field that you do not really want after all. To add a field to a database table, follow these steps:
- Click an existing field in your database table and then click the Datasheet tab.
- Click the Insert button in the Fields & Columns group. Access inserts a new field (column) in your database table.
To delete a field from a database table, follow these steps:
- Click the field you want to delete. Access highlights the entire column in your database table and then click the Datasheet tab.
- Click the Delete button in the Fields & Columns group. A dialog box appears, asking whether you want to permanently delete all the data in the field.
If you delete a field, you also delete any data that may be stored in that field. Depending on how much data you have stored, you could wipe out a lot of information by deleting a single field, so be careful.
- Click Yes (or No). If you click Yes, Access deletes your chosen field.
Defining the Type and Size of a Field
The type of a field defines the type of data the field can hold (numbers, text, dates, and so on), and the size of a field defines the amount of data the field can hold (no numbers larger than 250 digits, any text string fewer than 120 characters, and so on).
The purpose of defining the type and size of a field is to make sure you store only valid data in a particular field. If a field is meant to store names, you don’t want someone typing in a number. If a field is meant to store a person’s age, you do not want the field to accept negative numbers. To define the type and amount of a data a field can store, follow these steps:
- Click the Home or Datasheet tab.
- In the All Tables pane on the left of the screen, double-click the table that contains the fields you want to define. Access displays the Datasheet view of your table.
- Click the downward-pointing arrow underneath the View icon, which appears in the Views group. A pull-down menu appears and then click Design View. Access displays the Design view of your database table.
- (Optional) Click in the Field Name column and edit an existing field name. If you click in a blank row, you can add a field to a database table.
- Click in the Data Type column. A downward-pointing arrow appears.
- Click the downward-pointing arrow. A pull-down menu appears, listing all the different types of data you can define to store in a field.
- Choose a data type, such as Number, Text, or Date/Time. Access displays a General tab that contains different options for modifying your chosen data type, shown in figure.
- Click one of the data type options, such as Format or Input Mask, listed under the General tab. Sometimes you have to type a value directly into a data type option. Other times a pull-down menu appears, from which you can choose an option.
- Repeat Step 8 for each data type option you want to modify. You do not need to modify every data type option.


