| Lesson 7 |
Adding and Deleting fields |
| Objective |
Edit the table design by adding and deleting fields in MS Access |
Edit Table Design in Access by Adding and Deleting Fields
Even with careful planning, a table’s structure often changes over time. You may need to add a field to capture a new business requirement (for example, a client’s company name or website), or you may need to remove a field that is no longer used. In Microsoft Access, you can add or delete fields using either:
- Datasheet View (data-focused): quick structural edits while you are looking at records.
- Design View (schema-focused): precise control over field name, data type, and field properties.
This lesson shows the recommended approaches for both views, including what to watch out for when deleting fields.
Before you change table structure: key safeguards
-
Deleting a field deletes its data. When you remove a field, Access removes the column and all values stored in it. If you might need that data later, export or back up the table (or the entire database) first.
-
Consider dependencies. A field may be used by queries, forms, reports, macros, VBA code, indexes, or relationships.
Removing or renaming a field can break those objects.
-
Choose the right data type up front. Adding a field is easy, but changing a data type later can cause conversion issues
(for example, converting text to a number).
Adding a field in Datasheet view
Datasheet view is the fastest place to add a new field when you are already viewing table rows. In modern Access versions,
the most common method is the Click to Add column on the right side of the datasheet.
- Open the table in Datasheet View.
- Click the Click to Add column header (usually the rightmost column).
- Select the data type you want (for example, Short Text, Number, Date/Time, or Hyperlink).
- Enter a meaningful field name (replace the default such as
Field1) and press Enter.
You can also insert a column near an existing field using the column header shortcut menu. When you right-click a column header and insert,
the new field is typically inserted adjacent to the selected column (placement depends on your exact Access version and context).
The “Click to Add” approach is the clearest and least error-prone for most users.
Adding a field in Design view
Design view is preferred when you need precision: you can set the data type, description, indexing, and field properties immediately.
This is the best place to add fields that will become part of a normalized design or will participate in keys and relationships.
- Open the table in Design View.
- Click the first empty row under Field Name.
- Type the new field name (example:
WebSite).
- Choose the Data Type from the drop-down (example: Hyperlink).
-
Optionally add a Description to document purpose and usage (useful for teams and long-lived databases).
-
Configure relevant Field Properties (Required, Default Value, Validation Rule, Input Mask, Indexed).
- Save the table, then return to Datasheet view to verify the new field appears as expected.
Example workflow: add two fields in two views
The following steps mirror a common training scenario: insert one field in Datasheet view and another in Design view.
Adding a field in Datasheet view
- In Datasheet view, add a new field named Company using Click to Add and choose Short Text.
- Confirm you can enter values for Company for each client record.
Adding a field in Design view
- Switch to Design view.
- Add a field named WebSite and set its data type to Hyperlink.
- Save the table and return to Datasheet view.
- Verify the new WebSite column is present and that URLs behave as clickable links.
Deleting a field in Datasheet view
Use Datasheet view when you want to remove a column quickly and you are confident it is not needed.
- Open the table in Datasheet View.
- Click the column header (field selector) for the field you want to remove.
- Right-click the column header and choose Delete Column (or similar wording).
- Confirm the deletion when prompted.
Deleting a field in Design view
Design view is safer when you need to confirm exactly which field is being removed and to review field properties first.
- Open the table in Design View.
- Click the row selector to the left of the field name (this selects the whole field definition row).
- Right-click and choose Delete Rows.
- Save the table design changes.
Modern best practices for table design changes
-
Name fields consistently. Prefer clear names like
Company or WebSite.
Avoid spaces and punctuation if you plan to integrate with SQL Server or automate with VBA/ODBC.
-
Keep “web site” values as Hyperlink only when you want click behavior.
If you want the raw URL as text for export/integration, consider Short Text plus a clickable form control.
-
Review indexing after structural changes. New fields that are frequently searched or used for joins may benefit from indexes.
-
Normalize when fields become repeating groups. If you find yourself adding fields like
Phone1, Phone2, Phone3,
that is a sign you may need a related child table instead of multiple columns.
Adding and Deleting Fields - Exercise
