Delete a field

You can delete a field from a query or from a table. When you delete a field from a query, the field remains in the database, but is no longer used in the query. When you delete a field from a table, the field is deleted from the entire database.

This topic provides an overview of the considerations and process of deleting fields, and gives steps for deleting a field from a query or a table.

This topic does not discuss in detail #Deleted displayed in a field or control. Most of the time, #Deleted indicates that the currently displayed record has recently been deleted. Usually, refreshing the data will correct this situation. For more information about refreshing the data, see the article Refresh or requery data. For more information about #Deleted, see the article I see #Deleted displayed in a control.

What do you want to do?


Overview

When you delete a field from a query, other database objects — such as forms — will not be able to use the query as a source of data from the deleted field. However, such objects can still use the field by using the table as the data source instead, or by using another query that contains the field.

When you delete a field from a table the field is no longer available to any database objects.

Before you delete a field, consider using the Object Dependencies pane to determine if other database object depend on the query or table from which you are deleting the field. This gives you the opportunity to review how deleting the field will affect other database objects, and to revise the deisgn of those objects accordingly.

Top of Page Top of Page

Review object dependencies before you delete a field

  1. In the Navigation Pane, select the query or table that contains the field that you want to delete.
  2. On the Database Tools tab, in the Show/Hide group, click Object Dependencies.

The Object Dependencies pane displays the objects that depend on the query or table that you selected in step 1.

Object Dependencies Pane

 Note   If you have not used the Object Dependencies pane recently, it may take a little while for the dependencies to show.

  1. To determine whether the field that you want to delete is used by a particular object, click that object's link in the Object Dependencies pane. Access displays the Field List pane for the object.

Delete a field from a query

  1. In the Navigation Pane, right-click the query, and then click Design View.
  2. In the query design grid, select the field that you want to delete, and then press DEL.
  3. Close and save the query.

Top of Page Top of Page

Delete a field from a table

  1. In the Navigation Pane, right-click the table, and then click Design View.
  2. In the table design grid, select the field that you want to delete, and then press DEL.
  3. Close and save the table.

Top of Page Top of Page

 
 
Applies to:
Access 2007