In Access tables are arguably the most important object. Use tables in Access to store all of your data to run queries and reports.
To quickly edit any record within a table, you can click it and type your changes. However, Access offers you the ability to find and replace a word within multiple records and delete records entirely.
To replace a word within a record:
You can edit multiple occurrences of the same word by using Find and Replace, which searches for a term and replaces it with another term.
- Select the Home tab, and locate the Find group.
- Select the Replace command. The Find and Replace dialog box will appear.
Clicking the Replace command
- In the Find What: field, type the word you want to find, then in the Replace With: field type the word you would like to replace the original word. In our example, we'll find instances of the word Fall and replace it with Autumn.
Entering the replacement text
- Click the Look In: drop-down arrow to select the area you want to search.
- Select Current Field to limit your search to the currently selected field.
- Select Current Document to search within the entire table.
Choosing where in the table to look
- Click the Match: drop-down arrow to select how closely you'd like results to match your search.
- Select Any Part of Field to search for your search term in any part of a cell.
- Select Whole Field to search only for cells that match your search term exactly.
- Select Beginning of Field to search only for cells that start with your search term.
Choosing how closely the records should match your search
- Click Find Next. If the text is found, it will be selected.
Clicking Find Next to view the next match for your search
- Review the text to make sure you want to replace it. Click Replace to replace the original word with the new one.
Replacing the original word with a new one
- Access will move to the next instance of the text in the object. When you are finished replacing text, click Cancel to close the dialog box.
The Replace All option is powerful, and it may actually change some things you don't want to change. In the example below, the word fall did not refer to the season, so replacing it with Autumn would be incorrect. Using the normal Replace option allows you check each instance before replacing the text. You can click Find Next to skip to the next instance without replacing the text.
The unintended consequences of choosing Replace All
To delete a record:
- Select the entire record by clicking the gray border on the left side of the record.
Selecting a record
- Select the Home tab and locate the Records group.
- Click the Delete command.
Clicking the Delete Command
- A dialog box will appear. Click Yes.
Deleting a record
- The record will be permanently deleted.
The ID numbers assigned to records stay the same even after you delete a record. For example, if you delete the 213th record in a table the sequence of record ID numbers will read ...212, 214, 215... rather than ...212, 213, 214, 215...
A missing ID number after a record has been deleted