If you are familiar with word processing and spreadsheet programs, you are probably familiar with find and replace commands. Even Internet browsers feature a find command. These commands are designed to search a document of any size quickly to find instances of a certain keyword or value and, if applicable, modify it. You can use the find and replace commands on every database object except reports (which are really just documents to be printed), macros (a collection of commands, no actual data), and modules (another sequence of commands, again no actual data). To demonstrate the find and replace functionality, open the Customers table in the Northwind Sample Database. Click Edit à Find. The Find and Replace dialog box will open:
If we wanted to search for London in the Customers table, we would type London in the Find What box and select Customers:Table from the Look In combo box. Click the Find Next button when ready to search:
Every match (or possible match, depending on your search criteria) will be highlighted as Access searches the document:
To use the replace function, click the Replace tab in the Find and Replace dialog box. The controls are exactly the same, only with a bit more functionality:
If you have spelled something wrong, or want to change the name of an organization to an acronym, type the word or number you want to be substituted in the Replace With box. Click the Find Next button to find the next instance of a certain keyword or number. You can click the Replace button to replace this instance with your new word or number, or if you are confident you want to change all instances of something, click the Replace All button.
|